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