Commit 57c8e6a9 authored by rockyl's avatar rockyl

增加自动识别paths配置

parent 05df48a2
......@@ -80,8 +80,8 @@ exports.executeBuildProcess = function (cmd) {
}
if (buildProcessName) {
const npm = require('global-npm');
try {
const npm = require('global-npm');
const modulePath = path.resolve(npm.GLOBAL_NPM_PATH, '../game-cli-build-process-' + buildProcessName);
const buildProcess = require(modulePath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment