Skip to content

Commit 257f269

Browse files
committed
skip postinstall during dev/publish
1 parent 77aa345 commit 257f269

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.28.6",
3+
"version": "10.28.7",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {
@@ -75,5 +75,6 @@
7575
"react-native": "0.73",
7676
"ts-jest": "^29.2.5",
7777
"typescript": "^5.6.3"
78-
}
78+
},
79+
"packageManager": "[email protected]+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
7980
}

scripts/check-expo-version.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
const ownPackageJson = require('../package.json');
2+
3+
if (process.env.npm_package_name === ownPackageJson.name) {
4+
console.log('Skipping postinstall during local development.');
5+
process.exit(0);
6+
}
7+
18
const fs = require('fs');
29
const path = require('path');
310

0 commit comments

Comments
 (0)