From 4bd27c06ce7d968490e385eadab5d1ae8372330b Mon Sep 17 00:00:00 2001 From: Jake Pruitt Date: Mon, 29 Apr 2024 14:27:29 +0200 Subject: [PATCH] Handle new ProcessGlobalArgsInternal function in node >19 (#1086) * Handle new ProcessGlobalArgsInternal function in node >19 * Use 18.19.99 specifically * Update src/patches/disable-node-cli.ts Co-authored-by: Caleb Boyd --------- Co-authored-by: Caleb Boyd --- src/patches/disable-node-cli.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/patches/disable-node-cli.ts b/src/patches/disable-node-cli.ts index 2270990..2713bd4 100644 --- a/src/patches/disable-node-cli.ts +++ b/src/patches/disable-node-cli.ts @@ -6,7 +6,14 @@ export default async function disableNodeCli(compiler: NexeCompiler, next: () => return next() } - if (semverGt(compiler.target.version, '11.6.0')) { + + if (semverGt(compiler.target.version, '18.99')) { + await compiler.replaceInFileAsync( + 'src/node.cc', + /(?