x
This commit is contained in:
17
frontend/scripts/run-dev-inner.mjs
Normal file
17
frontend/scripts/run-dev-inner.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
|
||||
const ensure = spawnSync(process.execPath, [join(root, 'scripts', 'ensure-native-bindings.mjs')], {
|
||||
stdio: 'inherit',
|
||||
cwd: root,
|
||||
})
|
||||
if (ensure.status !== 0) process.exit(ensure.status ?? 1)
|
||||
|
||||
const vite = spawnSync(process.execPath, [join(root, 'node_modules/vite/bin/vite.js')], {
|
||||
stdio: 'inherit',
|
||||
cwd: root,
|
||||
})
|
||||
process.exit(vite.status ?? 1)
|
||||
Reference in New Issue
Block a user