mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 12:54:16 +02:00
16 lines
489 B
JavaScript
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
|
|
});
|