swico 0.8.4-beta6 → 0.8.4-beta8

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-beta6",
3
+ "version": "0.8.4-beta8",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -130,12 +130,11 @@ var getProjectConfig = function (env) { return __awaiter(void 0, void 0, void 0,
130
130
  supportedFieldList_1 = ['plugins', 'console', 'copy', 'devtool', 'router'];
131
131
  configFileName = 'swico.prod.ts';
132
132
  }
133
- toastTitle = "Swico config => ".concat(chalk_1.default.hex(tools_1.colorConfig.theme)(configFileName));
133
+ toastTitle = "Swico config file => ".concat(chalk_1.default.hex(tools_1.colorConfig.theme)(configFileName));
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
- tools_1.toast.error(msgText);
138
- process.exit(1);
137
+ throw msgText;
139
138
  }
140
139
  if (key === 'base' && !['vue', 'react'].includes(configObj['template'])) {
141
140
  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 });