Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ad7e5c3

Browse files
committed
move patch logic under src
1 parent 1ff250d commit ad7e5c3

File tree

9 files changed

+4
-4
lines changed

9 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
3737
"prepare": "bob build",
3838
"release": "release-it",
39-
"patch": "node patch.js",
40-
"patch-dev": "node patch-dev.js",
39+
"patch": "node src/patch.js",
40+
"patch-dev": "node src/patch-dev.js",
4141
"postinstall": "yarn run patch"
4242
},
4343
"keywords": [

patch-dev.js renamed to src/patch-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const rootPath = path.join(__dirname, '.');
1313
// ============================================================================
1414
const RNRootPath = path.join(
1515
__dirname,
16-
'./example/node_modules',
16+
'../example/node_modules',
1717
'react-native'
1818
);
1919

patch.js renamed to src/patch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const rootPath = path.join(__dirname, '.');
1111
// ============================================================================
1212
// Get RN version
1313
// ============================================================================
14-
const RNRootPath = path.join(__dirname, '..', 'react-native');
14+
const RNRootPath = path.join(__dirname, '../..', 'react-native');
1515

1616
const RNPackageFile = `${RNRootPath}/package.json`;
1717
if (!fs.existsSync(RNPackageFile)) {

0 commit comments

Comments
 (0)