Skip to content

Commit

Permalink
retry build
Browse files Browse the repository at this point in the history
  • Loading branch information
jantimon committed May 16, 2024
1 parent 13db929 commit 55c7ecc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/linaria/build.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Linaria fails on the very first build 🤷‍♂️
// Therefore this script does it twice on error

import {$} from 'execa';

$({stdout: ['pipe', 'inherit']})`npm run build:next`.catch(() => $({stdout: ['pipe', 'inherit']})`npm run build:next`);
$({stdout: ['pipe', 'inherit']})
`npm run build:next`
.catch(() => $({stdout: ['pipe', 'inherit']})
`npm run build:next`
);

0 comments on commit 55c7ecc

Please sign in to comment.