From a143c470fbe517603f092a6a504b98dbc0fdcf3f Mon Sep 17 00:00:00 2001 From: bruce-one Date: Thu, 22 Aug 2019 02:56:46 +1000 Subject: [PATCH] fix: support NODE_OPTIONS in newer node versions (#660) And use `$&` for code simplification. --- src/patches/disable-node-cli.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/patches/disable-node-cli.ts b/src/patches/disable-node-cli.ts index 0c1e442..d89122b 100644 --- a/src/patches/disable-node-cli.ts +++ b/src/patches/disable-node-cli.ts @@ -7,13 +7,9 @@ export default async function disableNodeCli(compiler: NexeCompiler, next: () => } if (semverGt(compiler.target.version, '11.6.0')) { - await compiler.replaceInFileAsync( - 'src/node.cc', - /(?