浏览代码

fix : this didn't run on windows

Jonathan 8 年之前
父节点
当前提交
c80db9ca8a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      build/bin/build-all.js

+ 1 - 1
build/bin/build-all.js

@@ -19,7 +19,7 @@ Object.keys(components).forEach(key => {
 });
 
 const paths = componentPaths.join(',');
-const cli = `node_modules/.bin/cooking build -c ${paths} -p`;
+const cli = path.join('node_modules', '.bin', 'cooking') + ` build -c ${paths} -p`;
 
 execSync(cli, {
   stdio: 'inherit'