@weapp-core/init 6.0.12 → 6.0.14
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/dist/index.js +6 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -89,7 +89,7 @@ let _lazyMatch = () => {
|
|
|
89
89
|
}
|
|
90
90
|
return u >= e;
|
|
91
91
|
})));
|
|
92
|
-
}, tr = (r, e) => C(r, 0, 1), f = (r, e) => C(r, 0,
|
|
92
|
+
}, tr = (r, e) => C(r, 0, 1), f = (r, e) => C(r, 0, 1 / 0), x = (r, e) => {
|
|
93
93
|
const n = r.map(v);
|
|
94
94
|
return g(_(M((a) => {
|
|
95
95
|
for (let t = 0, o = n.length; t < o; t++) if (!n[t](a)) return false;
|
|
@@ -851,7 +851,7 @@ async function initTsJsonFiles(options) {
|
|
|
851
851
|
}
|
|
852
852
|
//#endregion
|
|
853
853
|
//#region ../../packages/weapp-vite/package.json
|
|
854
|
-
var version = "6.
|
|
854
|
+
var version = "6.20.2";
|
|
855
855
|
//#endregion
|
|
856
856
|
//#region src/npm.ts
|
|
857
857
|
/**
|
|
@@ -923,7 +923,10 @@ async function upsertDependencyVersion(packageJson, keyPath, packageName, option
|
|
|
923
923
|
set(packageJson, keyPath, resolved);
|
|
924
924
|
return;
|
|
925
925
|
}
|
|
926
|
-
if (currentValue === void 0)
|
|
926
|
+
if (currentValue === void 0) {
|
|
927
|
+
const fallback = FALLBACK_DEP_VERSIONS[packageName] ?? "latest";
|
|
928
|
+
set(packageJson, keyPath, fallback);
|
|
929
|
+
}
|
|
927
930
|
}
|
|
928
931
|
/**
|
|
929
932
|
* @description 创建或更新 package.json
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/init",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.14",
|
|
5
5
|
"description": "@weapp-core/init",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@weapp-core/logger": "3.1.1",
|
|
43
|
-
"@weapp-core/shared": "3.
|
|
43
|
+
"@weapp-core/shared": "3.1.1"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"dev": "tsdown -w --sourcemap",
|