File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
react-native/packager/react-packager/src/Resolver Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " rn-packager" ,
3- "version" : " 0.9.5 " ,
3+ "version" : " 0.9.6 " ,
44 "description" : " Based on Facebook Packager v0.32.0, support Core & Business JS Separate." ,
55 "main" : " src/index.js" ,
66 "bin" : {
1717 "bugs" : {
1818 "url" : " https://github.com/react-component/rn-packager/issues"
1919 },
20+ "scripts" : {
21+ "publish" : " git push origin"
22+ },
2023 "dependencies" : {
2124 "absolute-path" : " ^0.0.0" ,
2225 "art" : " ^0.10.0" ,
Original file line number Diff line number Diff line change @@ -20,14 +20,10 @@ let rnBlackList = [];
2020let rnSimpleBL = [ ] ;
2121let rnRegExpBL = [ ] ;
2222
23- const blparts = __dirname . split ( 'node_modules' ) ;
24- let projectRoot = blparts [ 0 ] ;
25- if ( blparts . length < 2 ) {
26- projectRoot = process . cwd ( ) ;
27- }
28- const blacklistPath = path . join ( projectRoot , 'rn-blacklist.js' ) ;
29- if ( fs . existsSync ( blacklistPath ) ) {
30- rnBlackList = require ( blacklistPath ) ;
23+ if ( process . env . RN_BLACKLIST_PATH ) {
24+ rnBlackList = require ( process . env . RN_BLACKLIST_PATH ) ;
25+ } else if ( fs . existsSync ( path . join ( process . cwd ( ) , 'rn-blacklist.js' ) ) ) {
26+ rnBlackList = require ( process . cwd ( ) + '/rn-blacklist.js' ) ;
3127}
3228
3329for ( var i in rnBlackList ) {
You can’t perform that action at this time.
0 commit comments