kn-cli 1.0.104 → 1.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/build.js +7 -3
package/package.json
CHANGED
package/src/build.js
CHANGED
|
@@ -286,13 +286,17 @@ module.exports= async (options={})=> {
|
|
|
286
286
|
console.log(chalk.green.bold('_link_node_modules_from:'+_link_node_modules_from));
|
|
287
287
|
let _link_node_modules=`ln -s ${_link_node_modules_from} ${_link_node_modules_to}`;
|
|
288
288
|
if (IS_WINDOWS()) {
|
|
289
|
-
_link_node_modules=`mklink /D
|
|
289
|
+
_link_node_modules=`mklink /D ${_link_node_modules_to} ${_link_node_modules_from} `;
|
|
290
290
|
}else{
|
|
291
291
|
_link_node_modules=`ln -s ${_link_node_modules_from} ${_link_node_modules_to}`;
|
|
292
292
|
}
|
|
293
|
-
task.output='执行link'
|
|
293
|
+
task.output='执行link:'+_link_node_modules
|
|
294
294
|
console.log(chalk.green.bold('执行_link_node_modules:'+_link_node_modules));
|
|
295
|
-
shelljs.exec(_link_node_modules);
|
|
295
|
+
let req= shelljs.exec(_link_node_modules);
|
|
296
|
+
if(req.code!=0){
|
|
297
|
+
console.log(chalk.red.bold('执行link异常:'+req.stdout));
|
|
298
|
+
console.log(chalk.red.bold('执行link异常:'+req.stderr));
|
|
299
|
+
}
|
|
296
300
|
}
|
|
297
301
|
resolve();
|
|
298
302
|
|