This commit is contained in:
pucketm2016 committed 2026-06-25 12:41:33 -05:00
1 parent 8c60e154a7
commit 56e34475fc
16 files changed
+113 -46

No files matched your search

+3 -2
View File
@@ -1,10 +1,11 @@
import fs from 'node:fs';
import path from 'path';
import { spawnSync } from 'node:child_process';
if (fs.existsSync('dist/index.html')) {
if (fs.existsSync(path.join('dist', 'index.html'))) {
process.exit(0);
}
const result = spawnSync(process.execPath, ['node_modules/vite/bin/vite.js', 'build'], { stdio: 'inherit' });
const result = spawnSync(process.execPath, [path.join('node_modules', 'vite', 'bin', 'vite.js'), 'build'], { stdio: 'inherit' });
process.exit(result.status ?? 1);