create-weapp-vite 2.9.1 → 3.0.0
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/README.md +15 -4
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-8XDUHEZA.js → src-DetUnDjV.js} +13 -13
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
推荐直接使用包管理器的 create 命令:
|
|
19
19
|
|
|
20
|
-
>
|
|
20
|
+
> 需要 Node.js 22(至少 `22.22.2`)、24(至少 `24.15.0`)或 26 及以上版本,再执行 `pnpm create weapp-vite`、`yarn create weapp-vite` 或 `npm create weapp-vite@latest`。不再支持 Node.js 20。
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
pnpm create weapp-vite
|
|
@@ -114,20 +114,31 @@ pnpm --config.registry=https://registry.npmmirror.com/ install
|
|
|
114
114
|
|
|
115
115
|
首次 `pnpm create weapp-vite` 下载由 pnpm 负责;包尚未下载时,脚手架的容错逻辑无法执行。镜像中的框架包、脚手架包和 tarball 可能不同步。完全离线也只有在脚手架及其依赖已经缓存后,才可能进入本地模板生成。
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
### pnpm 12 的发布冷却期
|
|
118
|
+
|
|
119
|
+
pnpm 12.5.1 默认启用 `minimumReleaseAge=1440`(分钟,即 24 小时),未显式配置时采用非严格模式。新版本发布后的冷却期内,`pnpm create weapp-vite` 或 `pnpm create weapp-vite@latest` 可能选择已经满足发布年龄的旧版;即使使用官方源和全新缓存,也可能出现这种结果。`pnpm view ... version` 显示的是源中的最新版本,不代表 `create` 一定会执行它。
|
|
120
|
+
|
|
121
|
+
可以等待目标版本满足当前发布年龄策略;需要提前使用某个已核对的版本时,按下文指定精确版本。默认非严格模式会为明确指定的包版本自动记录精确的 `minimumReleaseAgeExclude` 例外;`create` / `dlx` 的例外记录在其临时工作区,不会全局关闭发布年龄检查,也不代表后续项目安装中的其他依赖获得豁免。
|
|
122
|
+
|
|
123
|
+
若用户或团队启用了 `minimumReleaseAgeStrict`,应等待配置的冷却期结束,或根据 pnpm 的交互提示和团队流程审批该精确版本;非交互 / CI 环境可能直接拒绝安装。显式设置发布年龄时,pnpm 12.5.1 默认转为严格模式。精确版本、换源和清缓存都不能保证绕过用户的严格策略或其他安全检查,不建议为运行脚手架全局关闭这些检查。
|
|
124
|
+
|
|
125
|
+
### 确认版本并重试
|
|
126
|
+
|
|
127
|
+
先向当前可达的源查询版本;需要核对冷却期时,也可查看发布时间:
|
|
118
128
|
|
|
119
129
|
```bash
|
|
120
130
|
pnpm --config.registry=https://registry.npmmirror.com/ view create-weapp-vite version
|
|
121
131
|
pnpm --config.registry=https://registry.npmjs.org/ view create-weapp-vite version
|
|
132
|
+
pnpm --config.registry=https://registry.npmjs.org/ view create-weapp-vite time --json
|
|
122
133
|
```
|
|
123
134
|
|
|
124
|
-
|
|
135
|
+
选择包含所需修复、该源已同步且符合你的安全策略的精确版本,将下面的 `<version>` 替换为已核对的版本号(例如 `2.9.1`),再运行:
|
|
125
136
|
|
|
126
137
|
```bash
|
|
127
138
|
pnpm --config.registry=https://registry.npmmirror.com/ dlx create-weapp-vite@<version> my-app wevu
|
|
128
139
|
```
|
|
129
140
|
|
|
130
|
-
如果当前镜像尚未同步且官方源可达,可将命令中的 registry
|
|
141
|
+
如果当前镜像尚未同步且官方源可达,可将命令中的 registry 改为官方源;官方源不可达时使用可用镜像或已配置的代理,不必强制直连。指定精确版本可避免复用旧 `latest` 的执行缓存,并明确请求哪个版本;它对发布冷却期的处理仍受上述严格 / 非严格模式约束。旧脚手架本身不会获得新版代码中的修复。历史 `2.9.0` 及更早发布版本不包含本文的默认离线、代理与超时改造。
|
|
131
142
|
|
|
132
143
|
安装时报 DNS、超时或连接错误时先检查 registry/代理;证书错误应配置正确 CA,401/403 应修正该源认证。包或版本 404 通常需要检查镜像同步、作用域源和 tarball 是否齐全。生成成功只说明模板完整,仍须以正常 `pnpm install`(包含 `wv prepare`)、`pnpm build` 和 `pnpm dev` 验证安装与构建。
|
|
133
144
|
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as validateDependencyVersionStrategy, n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-
|
|
1
|
+
import { i as validateDependencyVersionStrategy, n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-DetUnDjV.js";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import logger from "@weapp-core/logger";
|
|
4
4
|
import { fs } from "@weapp-core/shared/fs";
|
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-DetUnDjV.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -38,19 +38,19 @@ function createAgentsGuidelines(templateName) {
|
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region ../../packages-runtime/react/package.json
|
|
41
|
-
var version$4 = "0.2.
|
|
41
|
+
var version$4 = "0.2.10";
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region ../../packages-runtime/wevu/package.json
|
|
44
|
-
var version$3 = "7.
|
|
44
|
+
var version$3 = "7.3.0";
|
|
45
45
|
//#endregion
|
|
46
46
|
//#region ../dashboard/package.json
|
|
47
|
-
var version$2 = "7.
|
|
47
|
+
var version$2 = "7.3.0";
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region ../eslint/package.json
|
|
50
|
-
var version$1 = "0.2.
|
|
50
|
+
var version$1 = "0.2.8";
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region ../weapp-vite/package.json
|
|
53
|
-
var version = "7.
|
|
53
|
+
var version = "7.3.0";
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/pnpmBuildPolicy.ts
|
|
56
56
|
const WORKSPACE_CONFIG = `packages: []
|
|
@@ -607,8 +607,8 @@ const TEMPLATE_CATALOG = {
|
|
|
607
607
|
"@babel/types": "^8.0.6",
|
|
608
608
|
"@douyin-microapp/typings": "^1.3.1",
|
|
609
609
|
"@egoist/tailwindcss-icons": "^1.9.2",
|
|
610
|
-
"@icebreakers/eslint-config": "^8.0.
|
|
611
|
-
"@icebreakers/stylelint-config": "^5.1.
|
|
610
|
+
"@icebreakers/eslint-config": "^8.0.2",
|
|
611
|
+
"@icebreakers/stylelint-config": "^5.1.2",
|
|
612
612
|
"@iconify-json/mdi": "^1.2.3",
|
|
613
613
|
"@iconify/tailwind4": "^1.2.3",
|
|
614
614
|
"@mini-types/alipay": "^3.0.14",
|
|
@@ -634,18 +634,18 @@ const TEMPLATE_CATALOG = {
|
|
|
634
634
|
"graphql-request": "^7.4.0",
|
|
635
635
|
"happy-dom": "^20.14.5",
|
|
636
636
|
"lru-cache": "^11.5.3",
|
|
637
|
-
"magic-string": "^1.4.
|
|
637
|
+
"magic-string": "^1.4.2",
|
|
638
638
|
"miniprogram-api-typings": "^5.2.3",
|
|
639
639
|
"oxc-parser": "^0.151.0",
|
|
640
640
|
"oxc-walker": "^1.1.1",
|
|
641
641
|
"pkg-types": "^2.3.3",
|
|
642
642
|
"postcss-selector-parser": "^7.1.6",
|
|
643
643
|
"react-reconciler": "0.34.0",
|
|
644
|
-
"sass-embedded": "^1.
|
|
644
|
+
"sass-embedded": "^1.105.0",
|
|
645
645
|
"socket.io-client": "^4.8.3",
|
|
646
646
|
"tailwind-merge": "^3.7.0",
|
|
647
647
|
"tailwind-variants": "^3.3.1",
|
|
648
|
-
"tdesign-miniprogram": "^1.
|
|
648
|
+
"tdesign-miniprogram": "^1.17.0",
|
|
649
649
|
"ts-morph": "^28.0.0",
|
|
650
650
|
"uview-plus": "3.8.113",
|
|
651
651
|
"vite-plugin-inspect": "^12.0.2",
|
|
@@ -669,8 +669,8 @@ const TEMPLATE_CATALOG = {
|
|
|
669
669
|
picocolors: "^1.1.1",
|
|
670
670
|
postcss: "^8.5.28",
|
|
671
671
|
react: "19.3.0",
|
|
672
|
-
rolldown: "1.2.
|
|
673
|
-
sass: "^1.
|
|
672
|
+
rolldown: "1.2.10",
|
|
673
|
+
sass: "^1.105.0",
|
|
674
674
|
sharp: "^0.35.4",
|
|
675
675
|
stylelint: "^17.15.0",
|
|
676
676
|
tailwindcss: "^4.3.3",
|
|
@@ -682,7 +682,7 @@ const TEMPLATE_CATALOG = {
|
|
|
682
682
|
zod: "^4.6.5"
|
|
683
683
|
};
|
|
684
684
|
const TEMPLATE_NAMED_CATALOG = {
|
|
685
|
-
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.
|
|
685
|
+
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.17.0" },
|
|
686
686
|
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.5.8" },
|
|
687
687
|
latest: {
|
|
688
688
|
"miniprogram-api-typings": "^5.2.3",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "create-weapp-vite tools and runtime components for modern WeChat and multi-platform mini-program development.",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"templates"
|
|
52
52
|
],
|
|
53
53
|
"engines": {
|
|
54
|
-
"node": "^
|
|
54
|
+
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@inquirer/prompts": "^8.7.2",
|
|
62
|
-
"@npmcli/config": "^
|
|
63
|
-
"@weapp-core/init": "6.0.
|
|
64
|
-
"@weapp-core/logger": "3.1.
|
|
65
|
-
"@weapp-core/shared": "3.2.
|
|
66
|
-
"execa": "^
|
|
67
|
-
"make-fetch-happen": "^
|
|
68
|
-
"npm-registry-fetch": "^
|
|
62
|
+
"@npmcli/config": "^11.1.0",
|
|
63
|
+
"@weapp-core/init": "6.0.23",
|
|
64
|
+
"@weapp-core/logger": "3.1.7",
|
|
65
|
+
"@weapp-core/shared": "3.2.6",
|
|
66
|
+
"execa": "^10.0.1",
|
|
67
|
+
"make-fetch-happen": "^16.0.1",
|
|
68
|
+
"npm-registry-fetch": "^20.0.1",
|
|
69
69
|
"pathe": "^2.0.3",
|
|
70
70
|
"pkg-types": "^2.3.3",
|
|
71
71
|
"semver": "^7.8.5"
|