This commit is contained in:
pucketm2016 committed 2026-06-25 12:24:51 -05:00
1 parent b58e50e423
commit f31fcd9e84
4 files changed
+52 -4

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import fs from 'node:fs';
import { spawnSync } from 'node:child_process';
if (fs.existsSync('dist/index.html')) {
process.exit(0);
}
const result = spawnSync('npm', ['run', 'build'], {
stdio: 'inherit',
shell: process.platform === 'win32'
});
process.exit(result.status ?? 1);