File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path = require("path");
33const { spawnSync } = require ( "child_process" ) ;
44
55const repoRoot = path . resolve ( __dirname , ".." ) ;
6+ const packageJson = require ( path . join ( repoRoot , "package.json" ) ) ;
67const turboLndRoot = path . join ( repoRoot , "node_modules" , "react-native-turbo-lnd" ) ;
78const turboLndPackagePath = path . join ( turboLndRoot , "package.json" ) ;
89const turboLndFetchPath = path . join ( turboLndRoot , "fetch-lnd.js" ) ;
1617 process . exit ( 0 ) ;
1718 }
1819
20+ const declaredDependency = packageJson . dependencies ?. [ "react-native-turbo-lnd" ] ?? "" ;
21+ if ( declaredDependency . startsWith ( "file:" ) ) {
22+ console . log (
23+ `[postinstall] react-native-turbo-lnd is using a local path (${ declaredDependency } ); skipping binary fetch.` ,
24+ ) ;
25+ process . exit ( 0 ) ;
26+ }
27+
1928 const { version : installedVersion } = JSON . parse ( fs . readFileSync ( turboLndPackagePath , "utf8" ) ) ;
2029 if ( ! installedVersion ) {
2130 console . warn (
You can’t perform that action at this time.
0 commit comments