diff options
author | 2024-08-28 22:52:49 +0800 | |
---|---|---|
committer | 2024-08-28 22:52:49 +0800 | |
commit | 440a4be0a6ca135e47b0d37124c1be03735ba7ff (patch) | |
tree | 0dc30d5fb2fc00cc71ec49b3aa967233789a9471 /scripts/smoke/cleanup.js | |
parent | 6272e6cec07778e81f853754bffaac40e658c700 (diff) | |
download | astro-440a4be0a6ca135e47b0d37124c1be03735ba7ff.tar.gz astro-440a4be0a6ca135e47b0d37124c1be03735ba7ff.tar.zst astro-440a4be0a6ca135e47b0d37124c1be03735ba7ff.zip |
Use tinyexec (#11845)
Diffstat (limited to 'scripts/smoke/cleanup.js')
-rw-r--r-- | scripts/smoke/cleanup.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/smoke/cleanup.js b/scripts/smoke/cleanup.js index 3b03951f9..1bb398d9e 100644 --- a/scripts/smoke/cleanup.js +++ b/scripts/smoke/cleanup.js @@ -2,7 +2,7 @@ // @ts-check -import { execa } from 'execa'; +import { exec } from 'tinyexec'; import { promises as fs } from 'node:fs'; import { fileURLToPath } from 'node:url'; @@ -36,7 +36,9 @@ async function run() { console.log('🤖', 'Resetting', 'pnpm'); - await execa('pnpm', ['install'], { cwd: fileURLToPath(rootDir), stdout: 'inherit', stderr: 'inherit' }); + await exec('pnpm', ['install'], { + nodeOptions: { cwd: fileURLToPath(rootDir), stdio: ['pipe', 'inherit', 'inherit'] }, + }); } /* Functionality |