mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -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');
|
const { spawnSync } = require('child_process');
|
||||||
|
|
||||||
function runCommand(command, args) {
|
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) {
|
if (result.error) {
|
||||||
console.log(result.error.message);
|
console.log(result.error.message);
|
||||||
process.exitCode = 1;
|
process.exitCode = 1;
|
||||||
|
|
Loading…
Reference in a new issue