create-weapp-vite 2.0.68 → 2.0.71

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 CHANGED
@@ -15,6 +15,8 @@
15
15
 
16
16
  推荐直接使用包管理器的 create 命令:
17
17
 
18
+ > 说明:推荐使用 `Node.js 22+`,再执行 `pnpm create weapp-vite`、`yarn create weapp-vite` 或 `npm create weapp-vite@latest`。
19
+
18
20
  ```bash
19
21
  pnpm create weapp-vite
20
22
  # 或
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TemplateName, t as createProject } from "./src-DmN_mq6C.js";
1
+ import { n as TemplateName, t as createProject } from "./src-BIknHQKa.js";
2
2
  import logger from "@weapp-core/logger";
3
3
  import fs from "fs-extra";
4
4
  import path from "node:path";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as TemplateName, t as createProject } from "./src-DmN_mq6C.js";
1
+ import { n as TemplateName, t as createProject } from "./src-BIknHQKa.js";
2
2
  export { TemplateName, createProject };
@@ -3,11 +3,14 @@ import logger from "@weapp-core/logger";
3
3
  import fs from "fs-extra";
4
4
  import path from "pathe";
5
5
  import https from "node:https";
6
+ //#region ../weapi/package.json
7
+ var version$2 = "0.2.2";
8
+ //#endregion
6
9
  //#region ../weapp-vite/package.json
7
- var version$1 = "6.12.0";
10
+ var version$1 = "6.12.3";
8
11
  //#endregion
9
12
  //#region ../wevu/package.json
10
- var version = "6.12.0";
13
+ var version = "6.12.3";
11
14
  //#endregion
12
15
  //#region src/enums.ts
13
16
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -21,6 +24,63 @@ let TemplateName = /* @__PURE__ */ function(TemplateName) {
21
24
  return TemplateName;
22
25
  }({});
23
26
  //#endregion
27
+ //#region src/agents.ts
28
+ function supportsWevu(templateName) {
29
+ return [TemplateName.wevu, TemplateName.wevuTdesign].includes(templateName);
30
+ }
31
+ function supportsNativePages(templateName) {
32
+ return !supportsWevu(templateName);
33
+ }
34
+ /**
35
+ * @description 生成新项目的 AGENTS 指引
36
+ */
37
+ function createAgentsGuidelines(templateName) {
38
+ const lines = [
39
+ "# AGENTS Guidelines",
40
+ "",
41
+ "## Local Docs First",
42
+ "",
43
+ "- After dependencies are installed, prefer reading local package docs under `node_modules/weapp-vite/dist/docs/` first.",
44
+ "- Start with `node_modules/weapp-vite/dist/docs/index.md`, then read `README.md` and `mcp.md` as needed.",
45
+ "- Prefer local package docs over stale model memory or old web pages when command behavior is unclear.",
46
+ "",
47
+ "## CLI Entry",
48
+ "",
49
+ "- This project supports both `weapp-vite` and `wv` CLI commands.",
50
+ "- Treat `weapp-vite dev` and `wv dev` as equivalent forms.",
51
+ "- Prefer project scripts such as `pnpm dev`, `pnpm build`, `pnpm open`, and `pnpm g` before ad-hoc shell commands.",
52
+ "- Use `weapp-vite prepare` or `wv prepare` when managed support files under `.weapp-vite/` need to be refreshed.",
53
+ "- Prefer `weapp-vite screenshot` or `wv screenshot` for mini-program screenshot acceptance.",
54
+ "- Prefer `weapp-vite ide logs --open` or `wv ide logs --open` for DevTools terminal log bridging.",
55
+ "- Do not default to generic browser screenshot tools when the target is the mini-program runtime in WeChat DevTools.",
56
+ "",
57
+ "## Weapp-vite Workflow",
58
+ "",
59
+ "- Keep `vite.config.ts` as the source of truth for `weapp` config, output behavior, and IDE/MCP automation.",
60
+ "- Confirm `weapp.srcRoot`, routes, subpackages, and auto-import strategy before broad refactors.",
61
+ "- Prefer minimal scoped verification: targeted `pnpm build`, targeted tests, then broader checks only when required.",
62
+ "- If editing package source in a monorepo dependency, rebuild the touched package before validating downstream apps to avoid stale `dist`.",
63
+ "- Keep CLI ownership explicit: native `weapp-vite` commands first, IDE passthrough second.",
64
+ "",
65
+ "## WeChat DevTools",
66
+ "",
67
+ "- Before using screenshot, preview, upload, automator, or `--open`, ensure WeChat DevTools is logged in and the service port is enabled.",
68
+ "- Prefer writing screenshots to workspace paths such as `.tmp/acceptance.png`.",
69
+ "",
70
+ "## AI Skills",
71
+ "",
72
+ "- Recommend installing shared skills with `npx skills add sonofmagic/skills`.",
73
+ "- In Codex/Claude environments, prefer these skills first when available:",
74
+ " - `$weapp-vite-best-practices` for config, build, subpackage, route, and CLI orchestration work.",
75
+ " - `$weapp-vite-vue-sfc-best-practices` for `.vue` SFC macros, JSON blocks, and template compatibility.",
76
+ " - `$weapp-ide-cli-best-practices` for DevTools automation, screenshot, preview, upload, and config commands.",
77
+ " - `$docs-and-website-sync` when documentation or AI guidance must be refreshed together with code changes."
78
+ ];
79
+ if (supportsWevu(templateName)) lines.push(" - `$wevu-best-practices` for `wevu` runtime lifecycle, state, store, and event contracts.", "", "## Wevu Authoring", "", "- Import runtime APIs from `wevu` in business code.", "- Register lifecycle hooks synchronously in `setup()` and avoid hook registration after `await`.", "- Prefer `ref`, `reactive`, `computed`, and explicit event contracts over large opaque state writes.", "- Use `storeToRefs` when destructuring store state/getters.", "- Treat mini-program runtime constraints as primary; do not assume Vue web-only behavior.");
80
+ if (supportsNativePages(templateName)) lines.push(" - `$native-to-weapp-vite-wevu-migration` when migrating native mini-program pages/components toward Vue SFC or wevu.", "", "## Native Mini-program Authoring", "", "- Keep native page/component structure consistent with the template unless there is a clear migration goal.", "- Prefer `weapp-vite generate` or `wv generate` for new app/page/component scaffolds.", "- If migrating this project toward Vue SFC or `wevu`, keep the migration explicit and prefer the official weapp-vite / wevu guidance first.");
81
+ return `${lines.join("\n")}\n`;
82
+ }
83
+ //#endregion
24
84
  //#region src/generated/catalog.ts
25
85
  const TEMPLATE_CATALOG = {
26
86
  "@babel/core": "^7.29.0",
@@ -49,7 +109,6 @@ const TEMPLATE_CATALOG = {
49
109
  "lru-cache": "^11.2.7",
50
110
  "magic-string": "^0.30.21",
51
111
  "miniprogram-api-typings": "^5.1.2",
52
- "miniprogram-automator": "^0.12.1",
53
112
  "object-hash": "^3.0.0",
54
113
  "oxc-parser": "^0.121.0",
55
114
  "oxc-walker": "^0.7.0",
@@ -61,7 +120,7 @@ const TEMPLATE_CATALOG = {
61
120
  "ts-morph": "^27.0.2",
62
121
  "vite-plugin-inspect": "^11.3.3",
63
122
  "vue-tsc": "^3.2.6",
64
- "weapp-tailwindcss": "^4.11.0",
123
+ "weapp-tailwindcss": "^4.11.1",
65
124
  autoprefixer: "^10.4.27",
66
125
  clsx: "^2.1.1",
67
126
  dayjs: "^1.11.20",
@@ -85,7 +144,7 @@ const TEMPLATE_CATALOG = {
85
144
  };
86
145
  const TEMPLATE_NAMED_CATALOG = {
87
146
  "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.1" },
88
- "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.0" },
147
+ "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.1" },
89
148
  latest: {
90
149
  "miniprogram-api-typings": "^5.1.2",
91
150
  typescript: "^6.0.2"
@@ -426,8 +485,10 @@ async function createProject(targetDir = "", templateName = TemplateName.default
426
485
  if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
427
486
  upsertExistingDependencyVersion(pkgJson, "weapp-vite", toCaretVersion(version$1));
428
487
  upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version));
488
+ upsertExistingDependencyVersion(pkgJson, "@wevu/api", toCaretVersion(version$2));
429
489
  await upsertTailwindcssVersion(pkgJson);
430
490
  await writeJsonFile(packageJsonPath, pkgJson);
491
+ await fs.writeFile(path.resolve(targetDir, "AGENTS.md"), createAgentsGuidelines(templateName));
431
492
  await updateGitIgnore({
432
493
  root: targetDir,
433
494
  write: true
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.68",
4
+ "version": "2.0.71",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-template",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "private": true,
6
6
  "description": "原生微信小程序 weapp-vite 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,20 +16,20 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
- "open": "weapp-vite open",
24
+ "open": "wv open",
25
25
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
26
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
27
- "g": "weapp-vite generate",
28
- "postinstall": "weapp-vite prepare"
27
+ "g": "wv generate",
28
+ "postinstall": "wv prepare"
29
29
  },
30
30
  "devDependencies": {
31
- "@icebreakers/eslint-config": "^2.1.0",
32
- "@icebreakers/stylelint-config": "^2.2.0",
31
+ "@icebreakers/eslint-config": "^2.1.2",
32
+ "@icebreakers/stylelint-config": "^2.2.1",
33
33
  "eslint": "^10.1.0",
34
34
  "miniprogram-api-typings": "catalog:",
35
35
  "sass": "catalog:",
@@ -1,4 +1,4 @@
1
- import { defineConfig } from 'weapp-vite/config'
1
+ import { defineConfig } from 'weapp-vite'
2
2
 
3
3
  export default defineConfig(
4
4
  ({ mode }) => {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.3",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,24 +16,26 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
22
- "build:lib": "weapp-vite build --config weapp-vite.lib.config.ts",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
+ "build:lib": "wv build --config weapp-vite.lib.config.ts",
23
23
  "lint": "eslint .",
24
24
  "lint:fix": "eslint . --fix",
25
- "open": "weapp-vite open",
25
+ "open": "wv open",
26
26
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
27
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
28
- "g": "weapp-vite generate",
29
- "postinstall": "weapp-vite prepare"
28
+ "g": "wv generate",
29
+ "postinstall": "wv prepare"
30
30
  },
31
31
  "peerDependencies": {
32
+ "@wevu/api": "workspace:*",
32
33
  "wevu": "workspace:*"
33
34
  },
34
35
  "devDependencies": {
35
- "@icebreakers/eslint-config": "^2.1.0",
36
- "@icebreakers/stylelint-config": "^2.2.0",
36
+ "@icebreakers/eslint-config": "^2.1.2",
37
+ "@icebreakers/stylelint-config": "^2.2.1",
38
+ "@wevu/api": "workspace:*",
37
39
  "eslint": "^10.1.0",
38
40
  "miniprogram-api-typings": "catalog:",
39
41
  "sass": "catalog:",
@@ -1,4 +1,4 @@
1
- import { defineConfig } from 'weapp-vite/config'
1
+ import { defineConfig } from 'weapp-vite'
2
2
 
3
3
  export default defineConfig({
4
4
  weapp: {
@@ -1,4 +1,4 @@
1
- import { defineConfig } from 'weapp-vite/config'
1
+ import { defineConfig } from 'weapp-vite'
2
2
 
3
3
  export default defineConfig({
4
4
  weapp: {
@@ -19,6 +19,7 @@ export default defineConfig({
19
19
  minify: false,
20
20
  rolldownOptions: {
21
21
  external: [
22
+ /^@wevu\/api(?:\/.*)?$/,
22
23
  /^wevu(?:\/.*)?$/,
23
24
  ],
24
25
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-tailwindcss-template",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "private": true,
6
6
  "description": "原生微信小程序 weapp-vite + tailwindcss 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,21 +16,21 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
- "open": "weapp-vite open",
24
+ "open": "wv open",
25
25
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
26
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
27
- "g": "weapp-vite generate",
28
- "postinstall": "weapp-tw patch && weapp-vite prepare"
27
+ "g": "wv generate",
28
+ "postinstall": "weapp-tw patch && wv prepare"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@egoist/tailwindcss-icons": "catalog:",
32
- "@icebreakers/eslint-config": "^2.1.0",
33
- "@icebreakers/stylelint-config": "^2.2.0",
32
+ "@icebreakers/eslint-config": "^2.1.2",
33
+ "@icebreakers/stylelint-config": "^2.2.1",
34
34
  "@iconify-json/mdi": "catalog:",
35
35
  "autoprefixer": "catalog:",
36
36
  "eslint": "^10.1.0",
@@ -1,5 +1,5 @@
1
1
  import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
2
- import { defineConfig } from 'weapp-vite/config'
2
+ import { defineConfig } from 'weapp-vite'
3
3
 
4
4
  export default defineConfig({
5
5
  weapp: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-tailwindcss-tdesign-template",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "private": true,
6
6
  "description": "原生微信小程序 weapp-vite + tailwindcss + tdesign 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,24 +16,24 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
- "open": "weapp-vite open",
24
+ "open": "wv open",
25
25
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
26
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
27
- "g": "weapp-vite generate",
28
- "postinstall": "weapp-tw patch && weapp-vite prepare"
27
+ "g": "wv generate",
28
+ "postinstall": "weapp-tw patch && wv prepare"
29
29
  },
30
30
  "dependencies": {
31
31
  "tdesign-miniprogram": "catalog:"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^2.1.0",
36
- "@icebreakers/stylelint-config": "^2.2.0",
35
+ "@icebreakers/eslint-config": "^2.1.2",
36
+ "@icebreakers/stylelint-config": "^2.2.1",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.1.0",
@@ -1,6 +1,6 @@
1
1
  import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
2
+ import { defineConfig } from 'weapp-vite'
2
3
  import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
3
- import { defineConfig } from 'weapp-vite/config'
4
4
 
5
5
  export default defineConfig({
6
6
  weapp: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-tailwindcss-vant-template",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "private": true,
6
6
  "description": "原生微信小程序 weapp-vite + tailwindcss 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,24 +16,24 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
- "open": "weapp-vite open",
24
+ "open": "wv open",
25
25
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
26
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
27
- "g": "weapp-vite generate",
28
- "postinstall": "weapp-tw patch && weapp-vite prepare"
27
+ "g": "wv generate",
28
+ "postinstall": "weapp-tw patch && wv prepare"
29
29
  },
30
30
  "dependencies": {
31
31
  "@vant/weapp": "catalog:"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^2.1.0",
36
- "@icebreakers/stylelint-config": "^2.2.0",
35
+ "@icebreakers/eslint-config": "^2.1.2",
36
+ "@icebreakers/stylelint-config": "^2.2.1",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.1.0",
@@ -1,6 +1,6 @@
1
1
  import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
2
+ import { defineConfig } from 'weapp-vite'
2
3
  import { VantResolver } from 'weapp-vite/auto-import-components/resolvers'
3
- import { defineConfig } from 'weapp-vite/config'
4
4
 
5
5
  export default defineConfig({
6
6
  weapp: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-wevu-template",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "private": true,
6
6
  "description": "weapp-vite + wevu (Vue SFC) 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,20 +16,20 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
24
  "typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
25
- "open": "weapp-vite open",
25
+ "open": "wv open",
26
26
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
27
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
28
- "postinstall": "weapp-vite prepare"
28
+ "postinstall": "wv prepare"
29
29
  },
30
30
  "devDependencies": {
31
- "@icebreakers/eslint-config": "^2.1.0",
32
- "@icebreakers/stylelint-config": "^2.2.0",
31
+ "@icebreakers/eslint-config": "^2.1.2",
32
+ "@icebreakers/stylelint-config": "^2.2.1",
33
33
  "eslint": "^10.1.0",
34
34
  "miniprogram-api-typings": "catalog:",
35
35
  "stylelint": "^17.6.0",
@@ -1,4 +1,4 @@
1
- import { defineConfig } from 'weapp-vite/config'
1
+ import { defineConfig } from 'weapp-vite'
2
2
 
3
3
  export default defineConfig(() => ({
4
4
  weapp: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-wevu-tailwindcss-tdesign-template",
3
3
  "type": "module",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "private": true,
6
6
  "description": "weapp-vite + wevu (Vue SFC) 模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -16,24 +16,24 @@
16
16
  },
17
17
  "keywords": [],
18
18
  "scripts": {
19
- "dev": "weapp-vite dev",
20
- "dev:open": "weapp-vite dev -o",
21
- "build": "weapp-vite build",
19
+ "dev": "wv dev",
20
+ "dev:open": "wv dev -o",
21
+ "build": "wv build",
22
22
  "lint": "eslint .",
23
23
  "lint:fix": "eslint . --fix",
24
24
  "typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
25
- "open": "weapp-vite open",
25
+ "open": "wv open",
26
26
  "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
27
  "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
28
- "postinstall": "weapp-tw patch && weapp-vite prepare"
28
+ "postinstall": "weapp-tw patch && wv prepare"
29
29
  },
30
30
  "dependencies": {
31
31
  "tdesign-miniprogram": "catalog:"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^2.1.0",
36
- "@icebreakers/stylelint-config": "^2.2.0",
35
+ "@icebreakers/eslint-config": "^2.1.2",
36
+ "@icebreakers/stylelint-config": "^2.2.1",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.1.0",
@@ -1,7 +1,7 @@
1
1
  import path from 'node:path'
2
2
  import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
3
+ import { defineConfig } from 'weapp-vite'
3
4
  import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
4
- import { defineConfig } from 'weapp-vite/config'
5
5
 
6
6
  export default defineConfig({
7
7
  resolve: {