Skip to content

Commit

Permalink
Fix duplicated error msgs from Docker container (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Nov 18, 2023
1 parent dddc9e6 commit 3b3a78a
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions docker/clone-and-preflight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,12 @@ if (projectUsesPostgresql) {
}

console.log('Running Preflight...');
const preflightOutput = await executeCommand('preflight', { cwd: projectPath });

if (preflightOutput) {
console.log(
preflightOutput
// node-fetch@3 (dependency in Preflight) uses experimental Node.js
// APIs. Until these are no longer experimental, remove the warning
// from the output manually.
.replace(
/\(node:\d+\) ExperimentalWarning: stream\/web is an experimental feature\. This feature could change at any time\n\(Use `node --trace-warnings \.\.\.` to show where the warning was created\)\n/,
'',
),
);
}

const { exitCode } = await execaCommand('preflight', {
cwd: projectPath,
reject: false,
stdout: 'inherit',
stderr: 'inherit',
});

process.exit(exitCode);

0 comments on commit 3b3a78a

Please sign in to comment.