diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/smoke/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/smoke/index.js b/scripts/smoke/index.js index c3c545529..bc81d70c0 100644 --- a/scripts/smoke/index.js +++ b/scripts/smoke/index.js @@ -26,10 +26,10 @@ const exampleDir = new URL('examples/', rootDir); const astroDir = new URL('packages/astro/', rootDir); /** GitHub configuration for the external "docs" Astro project. */ -const docGithubConfig = { org: 'withastro', name: 'docs', branch: 'main' }; +// const docGithubConfig = { org: 'withastro', name: 'docs', branch: 'main' }; /** GitHub configuration for the external "astro.build" Astro project. */ -const wwwGithubConfig = { org: 'withastro', name: 'astro.build', branch: 'main' }; +// const wwwGithubConfig = { org: 'withastro', name: 'astro.build', branch: 'main' }; /* Application /* -------------------------------------------------------------------------- */ @@ -41,17 +41,17 @@ async function run() { const directories = await getChildDirectories(exampleDir); // TODO Skipped the docs-main test since it is failing at the moment. - directories.push(/*await downloadGithubZip(docGithubConfig), */ await downloadGithubZip(wwwGithubConfig)); + // TODO Skipped the www test since it is failing at the moment. console.log('🤖', 'Preparing', 'yarn'); - await execa('yarn', [], { cwd: fileURLToPath(rootDir), stdout: 'inherit', stderr: 'inherit' }); + await execa('yarn', [], { cwd: fileURLToPath(rootDir), stdio: 'inherit' }); for (const directory of directories) { console.log('🤖', 'Testing', directory.pathname.split('/').at(-1)); try { - await execa('yarn', ['build'], { cwd: fileURLToPath(directory), stdout: 'inherit', stderr: 'inherit' }); + await execa('yarn', ['run', 'build'], { cwd: fileURLToPath(directory), stdio: 'inherit' }); } catch (err) { console.log(err); |