Skip to content

Commit a176e9d

Browse files
williamhatchliujuping
authored andcommitted
fix: npm run clean error in windows
不管在powershell或者cmd里面 rm -rf 都会报错。使用这个第三方包 rimraf, 本地测试成功。
1 parent 267f79c commit a176e9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"build": "./scripts/build.sh",
1515
"build:npm": "lerna run build --stream",
1616
"build:umd": "lerna run build:umd --stream",
17-
"clean": "rm -rf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
17+
"clean": "rimraf ./packages/*/lib ./packages/*/es ./packages/*/dist ./packages/*/build",
18+
"clean:lib": "rimraf ./node_modules",
1819
"lint": "f2elint scan -q -i ./packages/*/src",
1920
"lint:fix": "f2elint fix -i ./packages/*/src",
2021
"lint:modules": "f2elint scan -q -i ./modules/*/src",
@@ -46,7 +47,8 @@
4647
"husky": "^7.0.4",
4748
"lerna": "^4.0.0",
4849
"typescript": "^4.5.5",
49-
"yarn": "^1.22.17"
50+
"yarn": "^1.22.17",
51+
"rimraf": "^3.0.2"
5052
},
5153
"engines": {
5254
"node": ">=14.17.0 <16"

0 commit comments

Comments
 (0)