create-weapp-vite 2.3.18 → 2.3.20
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-BOLICb-Z.js → src-C8j-zqTK.js} +14 -14
- package/package.json +1 -1
- package/templates/lib/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-C8j-zqTK.js";
|
|
2
2
|
import logger from "@weapp-core/logger";
|
|
3
3
|
import { fs } from "@weapp-core/shared/fs";
|
|
4
4
|
import process from "node:process";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { r as TemplateName, t as createProject } from "./src-C8j-zqTK.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -6,13 +6,13 @@ import https from "node:https";
|
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
//#region ../../packages-runtime/wevu/package.json
|
|
9
|
-
var version$2 = "6.16.
|
|
9
|
+
var version$2 = "6.16.6";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../dashboard/package.json
|
|
12
|
-
var version$1 = "6.16.
|
|
12
|
+
var version$1 = "6.16.6";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.16.
|
|
15
|
+
var version = "6.16.6";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/enums.ts
|
|
18
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -115,8 +115,8 @@ const TEMPLATE_CATALOG = {
|
|
|
115
115
|
"@types/semver": "^7.7.1",
|
|
116
116
|
"@vant/weapp": "^1.11.7",
|
|
117
117
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
118
|
-
"@vue/compiler-core": "^3.5.
|
|
119
|
-
"@vue/compiler-dom": "^3.5.
|
|
118
|
+
"@vue/compiler-core": "^3.5.34",
|
|
119
|
+
"@vue/compiler-dom": "^3.5.34",
|
|
120
120
|
"@vue/language-core": "^3.2.8",
|
|
121
121
|
"antd-mini": "^3.4.3",
|
|
122
122
|
"bundle-require": "^5.1.0",
|
|
@@ -126,7 +126,7 @@ const TEMPLATE_CATALOG = {
|
|
|
126
126
|
"gm-crypto": "^0.1.12",
|
|
127
127
|
"lru-cache": "^11.3.6",
|
|
128
128
|
"magic-string": "^0.30.21",
|
|
129
|
-
"miniprogram-api-typings": "^5.
|
|
129
|
+
"miniprogram-api-typings": "^5.2.0",
|
|
130
130
|
"oxc-parser": "^0.129.0",
|
|
131
131
|
"oxc-walker": "^0.7.0",
|
|
132
132
|
"pkg-types": "^2.3.1",
|
|
@@ -151,21 +151,21 @@ const TEMPLATE_CATALOG = {
|
|
|
151
151
|
merge: "^2.1.1",
|
|
152
152
|
pathe: "^2.0.3",
|
|
153
153
|
postcss: "^8.5.14",
|
|
154
|
-
rolldown: "1.0.0-rc.
|
|
154
|
+
rolldown: "1.0.0-rc.18",
|
|
155
155
|
sass: "^1.99.0",
|
|
156
156
|
stylelint: "^17.11.0",
|
|
157
157
|
tailwindcss: "^4.2.4",
|
|
158
158
|
tslib: "^2.8.1",
|
|
159
159
|
typescript: "^6.0.3",
|
|
160
|
-
vite: "8.0.
|
|
161
|
-
vue: "^3.5.
|
|
160
|
+
vite: "8.0.11",
|
|
161
|
+
vue: "^3.5.34",
|
|
162
162
|
zod: "^4.4.3"
|
|
163
163
|
};
|
|
164
164
|
const TEMPLATE_NAMED_CATALOG = {
|
|
165
165
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.14.0" },
|
|
166
166
|
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.12.0" },
|
|
167
167
|
latest: {
|
|
168
|
-
"miniprogram-api-typings": "^5.
|
|
168
|
+
"miniprogram-api-typings": "^5.2.0",
|
|
169
169
|
typescript: "^6.0.3"
|
|
170
170
|
},
|
|
171
171
|
tailwind3: { tailwindcss: "^4.2.4" },
|
|
@@ -302,17 +302,17 @@ function ensureTrailingNewline(value) {
|
|
|
302
302
|
function mergeGitignore(existing) {
|
|
303
303
|
const normalizedExisting = normalizeLineEndings(existing ?? "");
|
|
304
304
|
const merged = [...normalizedExisting.length ? normalizedExisting.split("\n") : []];
|
|
305
|
-
while (merged.length > 0 && merged.
|
|
305
|
+
while (merged.length > 0 && merged[merged.length - 1] === "") merged.pop();
|
|
306
306
|
const seen = new Set(merged);
|
|
307
307
|
let appendedNonBlank = false;
|
|
308
308
|
for (const line of DEFAULT_GITIGNORE.split("\n")) {
|
|
309
309
|
if (line.length === 0) {
|
|
310
|
-
if (merged.length === 0 || merged.
|
|
310
|
+
if (merged.length === 0 || merged[merged.length - 1] === "") continue;
|
|
311
311
|
merged.push("");
|
|
312
312
|
continue;
|
|
313
313
|
}
|
|
314
314
|
if (seen.has(line)) continue;
|
|
315
|
-
if (!appendedNonBlank && merged.length > 0 && merged.
|
|
315
|
+
if (!appendedNonBlank && merged.length > 0 && merged[merged.length - 1] !== "") merged.push("");
|
|
316
316
|
merged.push(line);
|
|
317
317
|
seen.add(line);
|
|
318
318
|
appendedNonBlank = true;
|
|
@@ -433,7 +433,7 @@ function mergeGitignoreSource(existing, template) {
|
|
|
433
433
|
merged.push(line);
|
|
434
434
|
seen.add(line);
|
|
435
435
|
}
|
|
436
|
-
while (merged.length > 0 && merged.
|
|
436
|
+
while (merged.length > 0 && merged[merged.length - 1] === "") merged.pop();
|
|
437
437
|
return `${merged.join("\n")}\n`;
|
|
438
438
|
}
|
|
439
439
|
async function copyTemplateDir(sourceDir, fallbackDir, targetDir) {
|
package/package.json
CHANGED