Files

17 lines
600 B
JavaScript
Raw Permalink Normal View History

2026-09-10 13:08:51 +03:30
import { execSync } from 'node:child_process'
import { existsSync } from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
process.chdir(root)
execSync('node scripts/write-docker-vite-env.mjs', { stdio: 'inherit' })
execSync('npm run build-only', { stdio: 'inherit' })
if (!existsSync(path.join(root, 'dist', 'index.html'))) {
throw new Error('dist/index.html ساخته نشد')
}
2026-09-10 15:44:30 +03:30
console.log('dist آماده است. commit و push کنید تا Dokploy بدون npm سرو کند.')