Skip to content

Commit

Permalink
fix: use rimraf instead of rm to fixed Windows build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Dec 16, 2019
1 parent 289678e commit 9e14341
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/taro-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"scripts": {
"server": "node node_modules/react-native/local-cli/cli.js start",
"build": "rm -rf ./dist && gulp",
"build": "rimraf ./dist && gulp",
"dev": "tsc --watch",
"prepack": "npm run build",
"test": "jest",
Expand Down Expand Up @@ -76,6 +76,7 @@
"react-native": "0.55.4",
"react-test-renderer": "^16.5.2",
"redux": "^4.0.0",
"rimraf": "^3.0.0",
"ts-jest": "23.10.4",
"tslib": "1.9.3",
"typescript": "3.0.3"
Expand Down
3 changes: 2 additions & 1 deletion packages/taro-router-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"index.js"
],
"scripts": {
"build": "rm -rf ./dist && gulp",
"build": "rimraf ./dist && gulp",
"dev": "npm run build:static && tsc --watch",
"prepack": "npm run build",
"test": "jest"
Expand Down Expand Up @@ -49,6 +49,7 @@
"react-native": "^0.55.4",
"react-test-renderer": "^16.5.2",
"regenerator-runtime": "^0.12.1",
"rimraf": "^3.0.0",
"ts-jest": "23.10.4",
"tslib": "1.9.3",
"typescript": "3.0.3"
Expand Down

0 comments on commit 9e14341

Please sign in to comment.