UNPKG

@baaz/cli

Version:

This is the home of the DevKit and the Baaz Framework CLI code. You can find the Baaz Framework CLI specific README [here](/README.md).

13 lines (10 loc) 348 B
export async function ScriptsRun(args) { if (args[2] !== undefined && args[2] == "run") { var exec = require('child_process').exec; var cmd = 'yarn run watch'; await exec(cmd, function (error, stdout, stderr) { // command output is in stdout console.log(error); }); } }