From 493fe43cd3ef94b087b8958031ecc964ae73463b Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Mon, 4 Nov 2024 22:49:33 +0800 Subject: Improve tinyexec errors (#12368) --- scripts/smoke/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/smoke/index.js') 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} */ - const execOptions = { nodeOptions: { cwd: fileURLToPath(rootDir), stdio: 'inherit' }}; + const execOptions = { + nodeOptions: { cwd: fileURLToPath(rootDir), stdio: 'inherit' }, + throwOnError: true, + }; console.log('🤖', 'Preparing', 'pnpm'); -- cgit v1.2.3