From f76a3a501d25e47445d5d40b8a7fed63aa0dc273 Mon Sep 17 00:00:00 2001 From: Hien To Date: Fri, 5 Jul 2024 09:35:48 +0700 Subject: [PATCH] Fix error windows bad param --- cortex-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortex-js/package.json b/cortex-js/package.json index 5c0b33d3..b169f993 100644 --- a/cortex-js/package.json +++ b/cortex-js/package.json @@ -12,7 +12,7 @@ "dev": "nest dev", "compile": "npx ncc build ./dist/src/command.js -o command", "build": "nest build", - "build:binary": "yarn build && yarn compile && npx -q patch-package && npx @yao-pkg/pkg . --options 'max-old-space-size=30720,tls-min-v1.0,expose-gc'", + "build:binary": "yarn build && yarn compile && npx -q patch-package && npx @yao-pkg/pkg . --options max-old-space-size=30720,tls-min-v1.0,expose-gc", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "build:extensions": "run-script-os", "build:extensions:windows": "powershell -command \"$jobs = Get-ChildItem -Path './src/extensions' -Directory | ForEach-Object { Start-Job -Name ($_.Name) -ScriptBlock { param($_dir); try { Set-Location $_dir; yarn; yarn build; Write-Output 'Build successful in ' + $_dir } catch { Write-Error 'Error in ' + $_dir; throw } } -ArgumentList $_.FullName }; $jobs | Wait-Job; $jobs | ForEach-Object { Receive-Job -Job $_ -Keep } | ForEach-Object { Write-Host $_ }; $failed = $jobs | Where-Object { $_.State -ne 'Completed' -or $_.ChildJobs[0].JobStateInfo.State -ne 'Completed' }; if ($failed) { Exit 1 }\"",