Skip to content

Commit

Permalink
Merge pull request #20305 from storybookjs/chore/improve-ci-message
Browse files Browse the repository at this point in the history
Build: remove borders in task error message
  • Loading branch information
yannbf authored Dec 19, 2022
2 parents ef18313 + b8c7b12 commit f05dfca
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions scripts/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,24 +437,21 @@ async function run() {

if (process.env.CI) {
logger.error(
boxen(
dedent`
To reproduce this error locally, run:
${getCommand('yarn task', options, {
...allOptionValues,
link: true,
startFrom: 'auto',
})}
Note this uses locally linking which in rare cases behaves differently to CI. For a closer match, run:
${getCommand('yarn task', options, {
...allOptionValues,
startFrom: 'auto',
})}`,
{ borderStyle: 'round', padding: 1, borderColor: '#F1618C' } as any
)
dedent`
To reproduce this error locally, run:
${getCommand('yarn task', options, {
...allOptionValues,
link: true,
startFrom: 'auto',
})}
Note this uses locally linking which in rare cases behaves differently to CI. For a closer match, run:
${getCommand('yarn task', options, {
...allOptionValues,
startFrom: 'auto',
})}`
);
}

Expand Down

0 comments on commit f05dfca

Please sign in to comment.