diff options
author | 2024-11-04 22:49:33 +0800 | |
---|---|---|
committer | 2024-11-04 22:49:33 +0800 | |
commit | 493fe43cd3ef94b087b8958031ecc964ae73463b (patch) | |
tree | 9fca7b3a2666666e74709542cf3b302a6e257e36 /scripts/smoke/index.js | |
parent | ec3113d25a318d94cac879c3eae4ad624ed1aee0 (diff) | |
download | astro-493fe43cd3ef94b087b8958031ecc964ae73463b.tar.gz astro-493fe43cd3ef94b087b8958031ecc964ae73463b.tar.zst astro-493fe43cd3ef94b087b8958031ecc964ae73463b.zip |
Improve tinyexec errors (#12368)
Diffstat (limited to '')
-rw-r--r-- | scripts/smoke/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js index 49887cd2e..1d9651c59 100644 --- a/scripts/smoke/index.js +++ b/scripts/smoke/index.js @@ -33,7 +33,10 @@ async function run() { const directories = [...(await getChildDirectories(smokeDir)), ...(await getChildDirectories(exampleDir))]; /** @type {Partial<import('tinyexec').Options>} */ - const execOptions = { nodeOptions: { cwd: fileURLToPath(rootDir), stdio: 'inherit' }}; + const execOptions = { + nodeOptions: { cwd: fileURLToPath(rootDir), stdio: 'inherit' }, + throwOnError: true, + }; console.log('🤖', 'Preparing', 'pnpm'); |