Skip to content

Commit ff1a951

Browse files
committed
replace rm -rf with rimraf for cross platform support
1 parent 093af58 commit ff1a951

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"lint": "eslint src",
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"build": "rm -rf dist && babel src --out-dir dist",
10+
"build": "rimraf ./dist && babel src --out-dir dist",
1111
"prepare": "yarn build"
1212
},
1313
"repository": {
@@ -37,15 +37,16 @@
3737
"peerDependencies": {
3838
"react": ">=16.8.6",
3939
"react-native": ">=0.60",
40-
"react-native-webview": ">=7.0.0",
41-
"react-native-web-webview": ">=1.0.2"
40+
"react-native-web-webview": ">=1.0.2",
41+
"react-native-webview": ">=7.0.0"
4242
},
4343
"devDependencies": {
4444
"@babel/cli": "^7.2.3",
4545
"@babel/core": "^7.2.2",
4646
"@react-native-community/eslint-config": "^2.0.0",
4747
"eslint": "^7.7.0",
48-
"metro-react-native-babel-preset": "^0.64.0"
48+
"metro-react-native-babel-preset": "^0.64.0",
49+
"rimraf": "^3.0.2"
4950
},
5051
"dependencies": {
5152
"events": "^3.2.0"

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2512,6 +2512,13 @@ rimraf@2.6.3:
25122512
dependencies:
25132513
glob "^7.1.3"
25142514

2515+
rimraf@^3.0.2:
2516+
version "3.0.2"
2517+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
2518+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
2519+
dependencies:
2520+
glob "^7.1.3"
2521+
25152522
safe-buffer@~5.1.0, safe-buffer@~5.1.1:
25162523
version "5.1.2"
25172524
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"

0 commit comments

Comments
 (0)