wechat-devtool
Version:
Wechat Miniprogram Devtool CLI for NodeJS
23 lines • 608 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 直接调用
*/
var path_1 = require("path");
var cli_1 = require("../lib/cli");
var args = process.argv.splice(2);
// 相对路径转绝对路径
args.forEach(function (value, index) {
if (index > 0 && value && (value.startsWith('./') || value.startsWith('../'))) {
args[index] = path_1.resolve(value);
}
});
cli_1.cliSpawn(args, {
stdio: 'inherit',
timeout: 180000,
shell: true,
windowsHide: true,
windowsVerbatimArguments: true,
});
//# sourceMappingURL=cli.js.map