react-native-repackager
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "react-native-repackager", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Custom extension for react-native packager", | ||
@@ -23,5 +23,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": ":", | ||
"postinstall": "node ./repackager.js" | ||
"test": ":" | ||
}, | ||
"bin": { | ||
"repackager": "./repackager.js" | ||
}, | ||
"dependencies": { | ||
@@ -28,0 +30,0 @@ "shell-utils": "1.x.x", |
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
const exec = require('shell-utils').exec; | ||
@@ -9,2 +11,4 @@ const fs = require('fs'); | ||
const shouldSetup = _.includes(process.argv, 'setup'); | ||
run(); | ||
@@ -14,4 +18,6 @@ | ||
assertRN44(); | ||
console.log(`injecting support for --customExtensions`); | ||
exec.execSync(`git apply --verbose --no-index --directory ${reactNativeDir} ${scriptDir}/rn44PackagerCustomExtensions.patch`); | ||
if (shouldSetup) { | ||
console.log(`injecting support for --customExtensions`); | ||
exec.execSync(`git apply --verbose --no-index --directory ${reactNativeDir} ${scriptDir}/rn44PackagerCustomExtensions.patch`); | ||
} | ||
} | ||
@@ -18,0 +24,0 @@ |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
20269
23
0