react-native-repackager
Advanced tools
Comparing version 0.2.2 to 0.44.0
@@ -1,1 +0,1 @@ | ||
console.error(`wut`); | ||
console.error(`lol wut`); |
{ | ||
"name": "react-native-repackager", | ||
"version": "0.2.2", | ||
"version": "0.44.0", | ||
"description": "Custom extension for react-native packager", | ||
@@ -13,6 +13,3 @@ "license": "MIT", | ||
}, | ||
"author": "Omri Bruchim <omrib@wix.com>", | ||
"contributors": [ | ||
"Daniel Zlotin <zlotindaniel@gmail.com>" | ||
], | ||
"author": "Daniel Zlotin <zlotindaniel@gmail.com>", | ||
"bugs": { | ||
@@ -19,0 +16,0 @@ "url": "https://github.com/wix/react-native-repackager/issues" |
@@ -31,2 +31,11 @@ # react-native-repackager | ||
add `repackager setup` to your postinstall script, this will patch the packager, adding `--customExtensions` feature to its cli. | ||
```json | ||
"scripts": { | ||
"postinstall": "repackager setup" | ||
} | ||
``` | ||
## API | ||
@@ -33,0 +42,0 @@ |
@@ -66,8 +66,4 @@ #!/usr/bin/env node | ||
function apply(patchFileName) { | ||
exec.execSync(`git apply ${shouldReverse ? '--reverse' : ''} --verbose --no-index --directory node_modules/react-native ${scriptDir}/${patchFileName}.patch`); | ||
} | ||
function patch(patchFileName) { | ||
exec.execSync(`patch ${shouldReverse ? '--reverse' : ''} --strip 1 --directory node_modules/react-native < ${scriptDir}/${patchFileName}.patch`); | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
78
0
26285
9
57