Skip to content

Commit

Permalink
chore(Package): add pnpm workspace and pnpm manage limit
Browse files Browse the repository at this point in the history
  • Loading branch information
HaixingOoO committed Mar 2, 2025
1 parent dd4c832 commit 8c2f4a8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 提升依赖项到根目录,以避免重复安装相同的包
shamefully-hoist=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
"changelog": "node script/generate-changelog.js",
"init:component": "node script/init-component",
"robot": "publish-cli robot-msg",
"prepare": "husky install"
"prepare": "husky install",
"preinstall": "npx only-allow pnpm"
},
"config": {
"commitizen": {
Expand Down
4 changes: 4 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packages:
- 'packages/**'
- 'site'
- 'test'

0 comments on commit 8c2f4a8

Please sign in to comment.