crabatool 1.0.839 → 1.0.840

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tool/start.js +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crabatool",
3
- "version": "1.0.839",
3
+ "version": "1.0.840",
4
4
  "description": "crabatool",
5
5
  "main": "index.js",
6
6
  "bin": {
package/tool/start.js CHANGED
@@ -242,9 +242,11 @@ class Start {
242
242
  if (config.virtualName) {
243
243
  basePath = config.virtualName;
244
244
  }
245
- var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
246
- if (!fs.existsSync(crabaJs)) {
247
- throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
245
+ if (!config.notCheckCraba) {
246
+ var crabaJs = utils.join(config.webPath, basePath, 'js/craba.min.js');
247
+ if (!fs.existsSync(crabaJs)) {
248
+ throw new Error('平台前端组件不存在,请检查指定的webPath路径是否为craba前端框架的根目录。' + crabaJs);
249
+ }
248
250
  }
249
251
  }
250
252