diff options
| author | matt korwel <[email protected]> | 2025-06-16 08:27:29 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-16 15:27:29 +0000 |
| commit | df938d6ee833ded59f6d12528105e6165ed76a92 (patch) | |
| tree | 712b82037a378b74f5fd68ed5b06f1aae56a88c9 /scripts | |
| parent | a600588c200f85e9f3bfe46ef7f836387e7349e5 (diff) | |
Preflight and integration npx (#1096)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/build_sandbox.js | 2 | ||||
| -rw-r--r-- | scripts/start.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/scripts/build_sandbox.js b/scripts/build_sandbox.js index 59177e8f..c6a16c23 100644 --- a/scripts/build_sandbox.js +++ b/scripts/build_sandbox.js @@ -107,7 +107,7 @@ function buildImage(imageName, dockerfile) { const buildCommand = sandboxCommand === 'podman' ? `${sandboxCommand} build --authfile=<(echo '{}')` - : `${sandboxCommand} --config=".docker" buildx build`; + : `${sandboxCommand} build`; const npmPackageVersion = JSON.parse( readFileSync(join(process.cwd(), 'package.json'), 'utf-8'), diff --git a/scripts/start.js b/scripts/start.js index 64dccd76..6a5445f3 100644 --- a/scripts/start.js +++ b/scripts/start.js @@ -64,4 +64,8 @@ const env = { DEV: 'true', }; -spawn('node', nodeArgs, { stdio: 'inherit', env }); +const child = spawn('node', nodeArgs, { stdio: 'inherit', env }); + +child.on('close', (code) => { + process.exit(code); +}); |
