swico 0.8.4-beta8 → 0.8.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "0.8.4-beta8",
3
+ "version": "0.8.4",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -134,7 +134,8 @@ var getProjectConfig = function (env) { return __awaiter(void 0, void 0, void 0,
134
134
  unSupportedField = configFields.find(function (field) { return !supportedFieldList_1.includes(field); });
135
135
  if (configFields.length > 0 && unSupportedField) {
136
136
  msgText = "The Swico configuration file '".concat(chalk_1.default.blue(configFileName), "' does not support the field '").concat(chalk_1.default.red(unSupportedField), "' ");
137
- throw msgText;
137
+ tools_1.toast.error(msgText);
138
+ process.exit(1);
138
139
  }
139
140
  if (key === 'base' && !['vue', 'react'].includes(configObj['template'])) {
140
141
  tools_1.toast.error("The field '".concat(chalk_1.default.blue('template'), "' does not support the value '").concat(chalk_1.default.red(configObj['template']), "',the value should be 'vue' or 'react' "), { title: toastTitle });