mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 11:25:09 -05:00
fix: website build
This commit is contained in:
parent
4e3dc95663
commit
250f2c5663
1 changed files with 12 additions and 1 deletions
|
@ -1,7 +1,18 @@
|
|||
const { spawnSync } = require('child_process');
|
||||
|
||||
function runCommand(command, args) {
|
||||
const result = spawnSync(command, args, { stdio: 'inherit', shell: true });
|
||||
const result = spawnSync(command, args, {
|
||||
stdio: 'inherit',
|
||||
shell: true,
|
||||
env: {
|
||||
...process.env,
|
||||
// Suppress the "Browserslist: caniuse-lite is outdated" warning. Although the warning is
|
||||
// potentially useful, the check is performed in a way that is nondeterministic and can cause
|
||||
// Rush pipelines to fail. Moreover, the outdated version is often irrelevant and/or nontrivial
|
||||
// to upgrade. See this thread for details: https://github.com/microsoft/rushstack/issues/2981
|
||||
BROWSERSLIST_IGNORE_OLD_DATA: '1'
|
||||
}
|
||||
});
|
||||
if (result.error) {
|
||||
console.log(result.error.message);
|
||||
process.exitCode = 1;
|
||||
|
|
Loading…
Reference in a new issue