swico 1.4.0-beta.2 → 1.5.0-beta.1
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 +5 -4
- package/src/utils/config.d.ts +1 -1
- package/src/utils/config.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swico",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-beta.1",
|
|
4
4
|
"description": "Simple, efficient, and practical front-end framework",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"author": "scw",
|
|
31
31
|
"license": "ISC",
|
|
32
|
-
"
|
|
32
|
+
"peerDependencies": {
|
|
33
33
|
"react": "~18.2.0",
|
|
34
34
|
"react-dom": "~18.2.0",
|
|
35
35
|
"react-router-dom": "6.23.0",
|
|
36
36
|
"vue": "~3.4.14",
|
|
37
37
|
"vue-router": "^4.2.5"
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"dependencies": {
|
|
40
40
|
"@babel/types": "7.23.9",
|
|
41
41
|
"@commitlint/cli": "18.5.0",
|
|
42
42
|
"@commitlint/config-conventional": "18.5.0",
|
|
@@ -87,5 +87,6 @@
|
|
|
87
87
|
"webpack-dev-server": "4.15.2",
|
|
88
88
|
"webpack-merge": "5.9.0",
|
|
89
89
|
"webpackbar": "6.0.1"
|
|
90
|
-
}
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {}
|
|
91
92
|
}
|
package/src/utils/config.d.ts
CHANGED
package/src/utils/config.js
CHANGED
|
@@ -142,7 +142,7 @@ var getProjectConfig = function (env) { return __awaiter(void 0, void 0, void 0,
|
|
|
142
142
|
process.exit(1);
|
|
143
143
|
}
|
|
144
144
|
if (key === 'base' && !['npm'].includes((_b = configObj['npmType']) !== null && _b !== void 0 ? _b : exports.initConfig.npmType)) {
|
|
145
|
-
tools_1.toast.error("The field '".concat(chalk_1.default.blue('npmType'), "' does not support the value '").concat(chalk_1.default.red(configObj['npmType']), "',the value should be 'npm' "), { title: toastTitle });
|
|
145
|
+
tools_1.toast.error("The field '".concat(chalk_1.default.blue('npmType'), "' does not support the value '").concat(chalk_1.default.red(configObj['npmType']), "',the value should be 'npm' or 'pnpm' "), { title: toastTitle });
|
|
146
146
|
process.exit(1);
|
|
147
147
|
}
|
|
148
148
|
if (!['hash', 'browser'].includes((_d = (_c = configObj['router']) === null || _c === void 0 ? void 0 : _c.type) !== null && _d !== void 0 ? _d : exports.initConfig.router.type)) {
|