Skip to content

Commit d9b16af

Browse files
committed
fix(rn-cli): Add removed packagePath
1 parent 95b6fd8 commit d9b16af

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Diff for: .gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# IDE
2+
.idea
3+
.vscode

Diff for: rn-cli.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const deleteFile = filename => {
1515
} catch (error) {}
1616
}
1717

18+
const packagePath = path.join(__dirname, 'package.json');
1819
const packageJSON = readFile('package.json');
20+
1921
const versionString = packageJSON.dependencies['react-native'];
2022
const versionNumber = parseInt(versionString.replace(/\./g, ''));
2123

Diff for: scripts.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
"android:install": "react-native run-android --variant=\"Release\"",
55
"android:shake": "$ANDROID_HOME/platform-tools/adb shell input keyevent 82",
66
"ios:install": "react-native run-ios --configuration Release",
7+
"flow": "flow check src/",
78
"project:clean": "rm -Rf $TMPDIR/react-* node_modules && watchman watch-del-all && yarn cache clean && cd android && ./gradlew clean && cd .. && yarn",
8-
"prettier:check": "prettier -l index.js src/**/*.js",
99
"prettier:all": "prettier --insert-pragma --write index.js src/**/*.js",
10+
"prettier:check": "prettier -l index.js src/**/*.js",
1011
"lint": "eslint --ext .js src/** ",
1112
"start": "node node_modules/react-native/local-cli/cli.js start",
1213
"start:clean": "yarn start --reset-cache",
1314
"test": "jest",
14-
"test:watch": "yarn test -- --watch"
15+
"test:watch": "yarn test --watch"
1516
}
1617
}

0 commit comments

Comments
 (0)