Skip to content

Commit

Permalink
feat: 依赖预打包
Browse files Browse the repository at this point in the history
  • Loading branch information
c0dedance committed Oct 30, 2023
1 parent 2a2f5fb commit 1d5fb05
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 6 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ bin
esm-cjs
docs
*.d.ts
vendors
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
.vscode
.temp
build
vendors
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"main": "index.js",
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"build": "tsup && pnpm build:deps",
"build:deps": "tsx ./scripts/prebundle.ts",
"lint": "eslint --fix --ext .ts,.tsx,.js,.jsx --quiet ./",
"test:unit": "vitest run",
"test:e2e": "playwright test",
Expand Down Expand Up @@ -35,6 +36,7 @@
"@types/lodash": "^4.14.200",
"@types/mdast": "^3.0.10",
"@types/node": "^20.8.4",
"@types/resolve": "^1.20.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"commitlint": "^17.7.2",
Expand Down Expand Up @@ -64,6 +66,7 @@
"@vitejs/plugin-react": "^2.2.0",
"acorn": "^8.10.0",
"cac": "^6.7.14",
"esbuild": "^0.19.5",
"fast-glob": "^3.3.1",
"fs-extra": "^11.1.1",
"github-slugger": "^2.0.0",
Expand All @@ -84,6 +87,7 @@
"remark-parse": "^10.0.1",
"remark-rehype": "^11.0.0",
"remark-stringify": "^10.0.2",
"resolve": "^1.22.8",
"rollup": "^4.0.2",
"shiki": "^0.14.5",
"sirv": "^2.0.3",
Expand Down

0 comments on commit 1d5fb05

Please sign in to comment.