daggerheart/tools/run-start.mjs
WBHarry c211085196
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Fixed node start not running gulp
2026-06-07 17:22:51 +02: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', 'gulp', `node "\"${foundryPath}\"" --dataPath="${dataPath}" --noupnp`];
spawn('npx', ['concurrently', ...args.map(arg => `"${arg}"`)], {
stdio: 'inherit',
cwd: process.cwd(),
shell: true
});