Skip to content

Commit

Permalink
refactor(pnpm-scripts): 更新pnpm脚本以优化包管理和清理
Browse files Browse the repository at this point in the history
重构pnpm脚本以简化安装和清理流程。
  • Loading branch information
Null committed Aug 9, 2024
1 parent 64cbeb8 commit 042cab1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"inits": "pnpm install",
"clean-dist": "rimraf 'packages/hooks/{lib,es,node_modules,dist}'",
"clean": "pnpm run clean-dist && rimraf node_modules",
"all": "pnpm install",
"clean-dist": "pnpm -r --filter=./packages/* run clearDist",
"clean": "pnpm -r --filter=./packages/* run clean && rimraf node_modules",
"build": "pnpm -r --filter=./packages/* run build",
"pub": "pnpm run build && pnpm -r --filter=./packages/* publish --access=public",
"pub": "pnpm run clean-dist && pnpm run build && pnpm -r --filter=./packages/* publish --access=public",
"pub:beta": "pnpm run build && pnpm -r --filter=./packages/* publish --tag beta",
"format": "prettier --write packages/ --fix",
"eslint": "eslint --fix ./packages/**/*.{js,ts} ",
Expand Down
6 changes: 3 additions & 3 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"module": "./es/index.js",
"unpkg": "./dist/zhongjiayao_v3_hooks",
"scripts": {
"build": "node scripts/build.mjs",
"clearDist": "rimraf dist",
"test": "echo \"Error: no test specified\" && exit 1"
"clean": "rimraf node_modules",
"clearDist": "rimraf dist lib es",
"build": "node scripts/build.mjs"
},
"keywords": [
"encode",
Expand Down

0 comments on commit 042cab1

Please sign in to comment.