Commit 6ae0c43e authored by Janka Uryga's avatar Janka Uryga

fix: don't show turborepo UI in pack-for-isolated-tests

parent 2b846de4
...@@ -81,12 +81,36 @@ async function createNextInstall({ ...@@ -81,12 +81,36 @@ async function createNextInstall({
pkgPaths = new Map(JSON.parse(pkgPathsEnv)) pkgPaths = new Map(JSON.parse(pkgPathsEnv))
require('console').log('using provided pkg paths') require('console').log('using provided pkg paths')
} else { } else {
await rootSpan.traceChild('turbo-run-pack').traceAsyncFn(() => await rootSpan.traceChild('turbo-run-pack').traceAsyncFn(async () => {
execa('pnpm', ['turbo', 'run', 'pack-for-isolated-tests'], { const result = await execa(
cwd: origRepoDir, 'pnpm',
stdio: ['ignore', 'inherit', 'inherit'], [
}) 'turbo',
) 'run',
'pack-for-isolated-tests',
// minimize output
'--output-logs=errors-only',
'--summarize=false',
// disable interactive UI when running in a terminal
'--ui=stream',
],
{
cwd: origRepoDir,
stdio: ['ignore', 'pipe', 'pipe'],
env: {
NO_UPDATE_NOTIFIER: '1', // Disable banner informing about new turborepo version
},
reject: false,
}
)
// Only log output if the command errored, otherwise it's just noise
if (result.failed) {
require('console').error(result.all)
throw new Error(
'Errors occurred when running turbo-run-pack, see output above'
)
}
})
if (process.env.NEXT_TEST_WASM) { if (process.env.NEXT_TEST_WASM) {
const wasmPath = path.join(origRepoDir, 'crates', 'wasm', 'pkg') const wasmPath = path.join(origRepoDir, 'crates', 'wasm', 'pkg')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment