exit on startup when scripts fail

pull/498/head
Cory LaViska 2021-08-09 08:33:30 -04:00
rodzic a050832da0
commit 5900594562
1 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -19,11 +19,15 @@ const { dev } = commandLineArgs({ name: 'dev', type: Boolean });
del.sync('./dist');
if (!dev) execSync('tsc', { stdio: 'inherit' }); // for type declarations
execSync('node scripts/make-metadata.js', { stdio: 'inherit' });
execSync('node scripts/make-vscode-data.js', { stdio: 'inherit' });
execSync('node scripts/make-css.js', { stdio: 'inherit' });
execSync('node scripts/make-icons.js', { stdio: 'inherit' });
try {
if (!dev) execSync('tsc', { stdio: 'inherit' }); // for type declarations
execSync('node scripts/make-metadata.js', { stdio: 'inherit' });
execSync('node scripts/make-vscode-data.js', { stdio: 'inherit' });
execSync('node scripts/make-css.js', { stdio: 'inherit' });
} catch (err) {
console.error(chalk.red(err));
process.exit(1);
}
(async () => {
const entryPoints = [