bump deps
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
16.15.1
|
||||
18.12.1
|
||||
|
||||
Generated
+1890
-525
File diff suppressed because it is too large
Load Diff
+13
-13
@@ -47,31 +47,31 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"caw": "^2.0.1",
|
||||
"chalk": "^5.0.1",
|
||||
"chalk": "^5.2.0",
|
||||
"download": "^8.0.0",
|
||||
"fast-glob": "^3.2.11",
|
||||
"got": "^12.1.0",
|
||||
"meriyah": "^4.2.1",
|
||||
"minimist": "^1.2.6",
|
||||
"fast-glob": "^3.2.12",
|
||||
"got": "^12.5.3",
|
||||
"meriyah": "^4.3.3",
|
||||
"minimist": "^1.2.7",
|
||||
"multistream": "^4.1.0",
|
||||
"ora": "^6.1.2",
|
||||
"resolve-dependencies": "^6.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@swc/cli": "^0.1.57",
|
||||
"@swc/core": "^1.2.210",
|
||||
"@swc/core": "^1.3.24",
|
||||
"@types/minimist": "^1.2.2",
|
||||
"@types/multistream": "^4.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
||||
"@typescript-eslint/parser": "^5.30.5",
|
||||
"eslint": "^8.19.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.47.0",
|
||||
"@typescript-eslint/parser": "^5.47.0",
|
||||
"eslint": "^8.30.0",
|
||||
"eslint-config-prettier": "~8.5.0",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"prettier": "^2.7.1",
|
||||
"ts-node": "^10.8.2",
|
||||
"typescript": "^4.7.4",
|
||||
"vitest": "^0.17.0"
|
||||
"prettier": "^2.8.1",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.4",
|
||||
"vitest": "^0.26.2"
|
||||
},
|
||||
"prettier": {
|
||||
"parser": "typescript",
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import type { NexeCompiler } from '../compiler.js'
|
||||
import { NexeError } from '../compiler.js'
|
||||
import { semverGt } from '../util.js'
|
||||
|
||||
export default async function disableNodeCli(compiler: NexeCompiler, next: () => Promise<void>) {
|
||||
if (compiler.options.enableNodeCli) {
|
||||
return await next()
|
||||
}
|
||||
|
||||
const replaced = await compiler.replaceInFileAsync(
|
||||
'src/node.cc',
|
||||
/(?<!int )ProcessGlobalArgs\(argv[^;]*;/gm,
|
||||
'0;/*$&*/'
|
||||
)
|
||||
const [regex, replacement] = semverGt(compiler.target.version, '18.99')
|
||||
? [/(?<!int )ProcessGlobalArgsInternal\(argv[^;]*;/gm, 'ExitCode::kNoFailure']
|
||||
: [/(?<!int )ProcessGlobalArgs\(argv[^;]*;/gm, 0],
|
||||
replaced = await compiler.replaceInFileAsync('src/node.cc', regex, `${replacement};/*$&*/`)
|
||||
|
||||
if (!replaced) {
|
||||
throw new NexeError('There was an error applying the Node CLI patch. Please open an issue.')
|
||||
|
||||
Reference in New Issue
Block a user