UNPKG

@mongez/gnz

Version:

Generator Z, the next generation of scaffolding tools.

9 lines (8 loc) 424 B
import {fileExists}from'@mongez/fs';import {execSync}from'child_process';import {Command}from'commander';const generateUsingNodeApi = new Command("api").action(async () => { const filePath = process.cwd() + "/gnz.ts"; if (!fileExists(filePath)) return; execSync(`npx ts-node ${filePath}`, { stdio: "inherit", }); });export{generateUsingNodeApi};//# sourceMappingURL=generate-using-api.js.map