Skip to content

Commit

Permalink
Fix error windows bad param
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh committed Jul 5, 2024
1 parent 20ecd54 commit f76a3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 }\"",
Expand Down

0 comments on commit f76a3a5

Please sign in to comment.