1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:21:37 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

skip postinstall during dev/publish

This commit is contained in:
sunnylqm
2025-04-26 22:52:32 +08:00
parent 77aa345f11
commit 257f2697e0
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
const ownPackageJson = require('../package.json');
if (process.env.npm_package_name === ownPackageJson.name) {
console.log('Skipping postinstall during local development.');
process.exit(0);
}
const fs = require('fs');
const path = require('path');