OPS: Windows patches

This commit is contained in:
Marcos Rodriguez Vélez 2021-07-21 11:47:16 -04:00
parent 0f87e1a81c
commit 250466af6b
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@
"postinstall": "rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path,assert,crypto --hack; npm run releasenotes2json; npm run podinstall", "postinstall": "rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path,assert,crypto --hack; npm run releasenotes2json; npm run podinstall",
"test": "npm run lint && npm run unit && npm run jest", "test": "npm run lint && npm run unit && npm run jest",
"jest": "jest -b -w 1 tests/integration/*", "jest": "jest -b -w 1 tests/integration/*",
"windowspatches": "./scripts/windows-patches.sh",
"maccatalystpatches": "./scripts/maccatalystpatches/applypatchesformaccatalyst.sh", "maccatalystpatches": "./scripts/maccatalystpatches/applypatchesformaccatalyst.sh",
"e2e:debug-build": "detox build -c android.emu.debug", "e2e:debug-build": "detox build -c android.emu.debug",
"e2e:debug-test": "detox test -c android.emu.debug -l fatal", "e2e:debug-test": "detox test -c android.emu.debug -l fatal",

1
scripts/windows-patches.sh Executable file
View file

@ -0,0 +1 @@
sed -i '' 's/if (error.code === "ENOENT") {/if (error.code === "ENOENT" || error.code === 'EISDIR') {/g' ./node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js