UNPKG

create-eliza

Version:

Initialize an Eliza project

10 lines (7 loc) 321 B
import { spawn } from 'node:child_process'; import { fileURLToPath } from 'node:url'; import { dirname, join } from 'node:path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const cliPath = join(__dirname, 'cli', 'index.js'); spawn(cliPath, ['init'], { stdio: 'inherit' });