UNPKG

@mongez/gnz

Version:

Generator Z, the next generation of scaffolding tools.

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