fix: update resolve-dependencies

This commit is contained in:
calebboyd
2020-04-26 09:08:25 -05:00
parent b785b72724
commit d6ba5d193f
23 changed files with 563 additions and 387 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export default async function disableNodeCli(compiler: NexeCompiler, next: () =>
'int i = v8_argc; i < v8_argc; i++'
)
let matches = 0
await compiler.replaceInFileAsync('src/node.cc', /v8_argc > 1/g, match => {
await compiler.replaceInFileAsync('src/node.cc', /v8_argc > 1/g, (match) => {
if (matches++) {
return 'false'
}