swico 0.8.4-beta7 → 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 +1 -1
- package/src/utils/config.js +2 -3
package/package.json
CHANGED
package/src/utils/config.js
CHANGED
|
@@ -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
|
-
|
|
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 });
|