Skip to content

Commit

Permalink
feat: compatible with macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
plylrnsdy committed Dec 4, 2023
1 parent c6235c6 commit 69e3534
Show file tree
Hide file tree
Showing 7 changed files with 2,139 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defaults
safari >= 11.1
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const IS_DEV = !IS_PROD
await fs.rm('./dist', { recursive: true, force: true })

await esbuild.build({
entryPoints: ['src/main.ts', 'src/style.css'],
entryPoints: ['src/main.ts'],
outdir: 'dist',
format: 'esm',
bundle: true,
Expand Down
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,32 @@
"main": "",
"scripts": {
"build:dev": "node build.js",
"build": "node build.js --prod",
"build": "rollup -c rollup.config.js",
"pack": "pnpm run build && node pack.js"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@rollup/plugin-virtual": "^3.0.2",
"@types/jquery": "3.3.1",
"@types/lodash": "~4.14.197",
"@types/node": "16.18.0",
"@types/typora": "npm:@typora-community-plugin/typora-types@^1.0.3",
"@typora-community-plugin/core": "2.0.0-beta.21",
"archiver": "^5.3.2",
"esbuild": "^0.18.20",
"esbuild-plugin-typora": "npm:@typora-community-plugin/esbuild-plugin-typora@^1.0.5"
"esbuild-plugin-typora": "npm:@typora-community-plugin/esbuild-plugin-typora@^1.0.5",
"rollup": "^4.1.4",
"rollup-plugin-typora": "npm:@typora-community-plugin/rollup-plugin-typora@^1.0.0",
"tslib": "^2.6.2",
"typescript": "^5.1.6"
}
}
Loading

0 comments on commit 69e3534

Please sign in to comment.