daggerheart/tools/run-start.mjs
Carlos Fernandez 8fec742da3
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
[Housekeeping] Fancier dev setup (#1980)
2026-06-06 21:52:45 -04:00

16 lines
489 B
JavaScript

#!/usr/bin/env node
import { spawn } from 'child_process';
import { readEnvFile } from './util.mjs';
import fs from 'fs';
// Load .env file params
const { foundryPath, dataPath } = readEnvFile();
// Run the original command with proper environment
const args = ['rollup -c --watch', `node "\"${foundryPath}\"" --dataPath="${dataPath}" --noupnp`, 'gulp'];
spawn('npx', ['concurrently', ...args.map(arg => `"${arg}"`)], {
stdio: 'inherit',
cwd: process.cwd(),
shell: true
});