Skip to content

Commit

Permalink
go back to ampx cli
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Nov 7, 2024
1 parent c9d1f40 commit 725ba17
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,15 @@ export const sandboxDeploy = async (cwd: string, props: Gen2DeployProps = {}): P
};

// Run sandbox deployment

/**
* For sandbox deployment, the nested ampx binary is retrieved instead of using npx
* On windows, the Ctrl-C signal is not returned correctly from npx binary, whose code is 1 and will fail nexpect check
* Therefore, the ampx binary is used for sandbox deployment instead of npx
*/
const ampxCli = getAmpxPath(cwd)
await
spawn(getNpxPath(), ['ampx', 'sandbox'], commandOptions)
spawn(ampxCli, ['sandbox'], commandOptions)
.wait('Watching for file changes...')
.sendCtrlC()
.runAsync();
Expand Down

0 comments on commit 725ba17

Please sign in to comment.