create-vue 3.22.1 → 3.22.2

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
@@ -1,4 +1,4 @@
1
- # create-vue <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/version/create-vue" alt="npm package"></a><a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/downloads-week/create-vue" alt="npm package"></a> <a href="https://nodejs.org/en/about/previous-releases"><img src="https://npmx.dev/api/registry/badge/engines/create-vue" alt="node compatibility"></a>
1
+ # create-vue <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/version/create-vue" alt="npm package"></a> <a href="https://npmx.dev/package/create-vue"><img src="https://npmx.dev/api/registry/badge/downloads-week/create-vue" alt="npm package"></a> <a href="https://nodejs.org/en/about/previous-releases"><img src="https://npmx.dev/api/registry/badge/engines/create-vue" alt="node compatibility"></a>
2
2
 
3
3
  The recommended way to start a Vite-powered Vue project
4
4
 
package/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- /*! create-vue v3.22.1 | MIT */
2
+ /*! create-vue v3.22.2 | MIT */
3
3
  import { createRequire } from "node:module";
4
4
  import * as fs from "node:fs";
5
5
  import "node:fs";
@@ -1346,8 +1346,8 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1346
1346
  };
1347
1347
  }));
1348
1348
  //#endregion
1349
- //#region utils/banners.ts
1350
- var import_ejs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
1349
+ //#region node_modules/.pnpm/ejs@3.1.10/node_modules/ejs/lib/ejs.js
1350
+ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
1351
1351
  /**
1352
1352
  * @file Embedded JavaScript templating engine. {@link http://ejs.co}
1353
1353
  * @author Matthew Eernisse <mde@fleegix.org>
@@ -2011,8 +2011,11 @@ var import_ejs = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((export
2011
2011
  exports.name = _NAME;
2012
2012
  /* istanbul ignore if */
2013
2013
  if (typeof window != "undefined") window.ejs = exports;
2014
- })))(), 1);
2014
+ }));
2015
+ //#endregion
2016
+ //#region utils/banners.ts
2015
2017
  var import_picocolors = require_picocolors();
2018
+ var import_ejs = /* @__PURE__ */ __toESM(require_ejs(), 1);
2016
2019
  const defaultBanner = "Vue.js - The Progressive JavaScript Framework";
2017
2020
  const gradientBanner = "\x1B[38;2;66;211;146mV\x1B[39m\x1B[38;2;66;211;146mu\x1B[39m\x1B[38;2;66;211;146me\x1B[39m\x1B[38;2;66;211;146m.\x1B[39m\x1B[38;2;66;211;146mj\x1B[39m\x1B[38;2;67;209;149ms\x1B[39m \x1B[38;2;68;206;152m-\x1B[39m \x1B[38;2;69;204;155mT\x1B[39m\x1B[38;2;70;201;158mh\x1B[39m\x1B[38;2;71;199;162me\x1B[39m \x1B[38;2;72;196;165mP\x1B[39m\x1B[38;2;73;194;168mr\x1B[39m\x1B[38;2;74;192;171mo\x1B[39m\x1B[38;2;75;189;174mg\x1B[39m\x1B[38;2;76;187;177mr\x1B[39m\x1B[38;2;77;184;180me\x1B[39m\x1B[38;2;78;182;183ms\x1B[39m\x1B[38;2;79;179;186ms\x1B[39m\x1B[38;2;80;177;190mi\x1B[39m\x1B[38;2;81;175;193mv\x1B[39m\x1B[38;2;82;172;196me\x1B[39m \x1B[38;2;83;170;199mJ\x1B[39m\x1B[38;2;83;167;202ma\x1B[39m\x1B[38;2;84;165;205mv\x1B[39m\x1B[38;2;85;162;208ma\x1B[39m\x1B[38;2;86;160;211mS\x1B[39m\x1B[38;2;87;158;215mc\x1B[39m\x1B[38;2;88;155;218mr\x1B[39m\x1B[38;2;89;153;221mi\x1B[39m\x1B[38;2;90;150;224mp\x1B[39m\x1B[38;2;91;148;227mt\x1B[39m \x1B[38;2;92;145;230mF\x1B[39m\x1B[38;2;93;143;233mr\x1B[39m\x1B[38;2;94;141;236ma\x1B[39m\x1B[38;2;95;138;239mm\x1B[39m\x1B[38;2;96;136;243me\x1B[39m\x1B[38;2;97;133;246mw\x1B[39m\x1B[38;2;98;131;249mo\x1B[39m\x1B[38;2;99;128;252mr\x1B[39m\x1B[38;2;100;126;255mk\x1B[39m";
2018
2021
  //#endregion
@@ -2409,7 +2412,7 @@ function getPackageManagerOptions(preferred) {
2409
2412
  //#endregion
2410
2413
  //#region package.json
2411
2414
  var name = "create-vue";
2412
- var version = "3.22.1";
2415
+ var version = "3.22.2";
2413
2416
  //#endregion
2414
2417
  //#region index.ts
2415
2418
  const language = await getLanguage(fileURLToPath(new URL("./locales", import.meta.url)));
@@ -2431,7 +2434,6 @@ const FEATURE_FLAGS = [
2431
2434
  "eslint-with-prettier",
2432
2435
  "oxlint",
2433
2436
  "oxfmt",
2434
- "vite-beta",
2435
2437
  "vue-beta"
2436
2438
  ];
2437
2439
  const FEATURE_OPTIONS = [
@@ -2464,20 +2466,13 @@ const FEATURE_OPTIONS = [
2464
2466
  label: language.needsPrettier.message
2465
2467
  }
2466
2468
  ];
2467
- const EXPERIMENTAL_FEATURE_OPTIONS = [
2468
- {
2469
- value: "oxfmt",
2470
- label: language.needsOxfmt.message
2471
- },
2472
- {
2473
- value: "vite-beta",
2474
- label: language.needsViteBeta.message
2475
- },
2476
- {
2477
- value: "vue-beta",
2478
- label: language.needsVueBeta.message
2479
- }
2480
- ];
2469
+ const EXPERIMENTAL_FEATURE_OPTIONS = [{
2470
+ value: "oxfmt",
2471
+ label: language.needsOxfmt.message
2472
+ }, {
2473
+ value: "vue-beta",
2474
+ label: language.needsVueBeta.message
2475
+ }];
2481
2476
  function isValidPackageName(projectName) {
2482
2477
  return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(projectName);
2483
2478
  }
@@ -2546,8 +2541,6 @@ Available feature flags:
2546
2541
  Add Prettier for code formatting.
2547
2542
  --oxfmt
2548
2543
  Add Oxfmt for code formatting.
2549
- --vite-beta
2550
- Use Vite 8 Beta instead of Vite for building the project.
2551
2544
  --vue-beta
2552
2545
  Use Vue 3.6 Beta. Requires specifying a package manager in interactive mode.
2553
2546
 
@@ -2561,8 +2554,6 @@ Deprecated feature flags:
2561
2554
  Please use ${(0, import_picocolors.cyan)("--eslint --prettier")} instead.
2562
2555
  --oxlint
2563
2556
  Oxlint is now always included when ESLint is selected.
2564
- --rolldown-vite
2565
- Please use ${(0, import_picocolors.cyan)("--vite-beta")} instead.
2566
2557
  `;
2567
2558
  async function init() {
2568
2559
  const cwd = process.cwd();
@@ -2679,7 +2670,6 @@ async function init() {
2679
2670
  const needsEslint = argv.eslint || argv["eslint-with-prettier"] || features.includes("eslint");
2680
2671
  const needsPrettier = argv.prettier || argv["eslint-with-prettier"] || features.includes("prettier");
2681
2672
  const needsOxfmt = experimentFeatures.includes("oxfmt") || argv["oxfmt"];
2682
- const needsViteBeta = experimentFeatures.includes("vite-beta") || argv["vite-beta"] || argv["rolldown-vite"];
2683
2673
  const needsVueBeta = experimentFeatures.includes("vue-beta") || argv["vue-beta"];
2684
2674
  const { e2eFramework } = result;
2685
2675
  const needsCypress = argv.cypress || argv.tests || argv["with-tests"] || e2eFramework === "cypress";
@@ -2699,12 +2689,6 @@ async function init() {
2699
2689
  const render = function render(templateName) {
2700
2690
  renderTemplate(path$1.resolve(templateRoot, templateName), root, callbacks);
2701
2691
  };
2702
- const replaceVite = () => {
2703
- const content = fs.readFileSync(path$1.resolve(root, "package.json"), "utf-8");
2704
- const json = JSON.parse(content);
2705
- json.devDependencies.vite = "beta";
2706
- fs.writeFileSync(path$1.resolve(root, "package.json"), JSON.stringify(json, null, 2));
2707
- };
2708
2692
  render("base");
2709
2693
  if (needsJsx) render("config/jsx");
2710
2694
  if (needsRouter) render("config/router");
@@ -2752,7 +2736,6 @@ async function init() {
2752
2736
  }
2753
2737
  if (needsOxfmt) render("formatting/oxfmt");
2754
2738
  else if (needsPrettier) render("formatting/prettier");
2755
- if (needsViteBeta) replaceVite();
2756
2739
  render(`code/${(needsTypeScript ? "typescript-" : "") + (needsRouter ? "router" : "default")}`);
2757
2740
  if (needsPinia && needsRouter) render("entry/router-and-pinia");
2758
2741
  else if (needsPinia) render("entry/pinia");
@@ -61,9 +61,6 @@
61
61
  "message": "Select experimental features to include in your project:",
62
62
  "hint": "(↑/↓ to navigate, space to select, a to toggle all, enter to confirm)"
63
63
  },
64
- "needsViteBeta": {
65
- "message": "Vite 8 (beta)"
66
- },
67
64
  "needsVueBeta": {
68
65
  "message": "Vue 3.6 (beta)"
69
66
  },
@@ -61,9 +61,6 @@
61
61
  "message": "Sélectionnez les fonctionnalités expérimentales à inclure\u00a0:",
62
62
  "hint": "(↑/↓ pour naviguer, espace pour sélectionner, a pour tout sélectionner, entrée pour confirmer)"
63
63
  },
64
- "needsViteBeta": {
65
- "message": "Vite 8 (beta)"
66
- },
67
64
  "needsVueBeta": {
68
65
  "message": "Vue 3.6 (beta)"
69
66
  },
@@ -61,9 +61,6 @@
61
61
  "message": "Dahil edilecek deneysel özellikleri seçin:",
62
62
  "hint": "(↑/↓ gezinmek için, boşluk seçmek için, a tümünü seçmek için, enter onaylamak için)"
63
63
  },
64
- "needsViteBeta": {
65
- "message": "Vite 8 (beta)"
66
- },
67
64
  "needsVueBeta": {
68
65
  "message": "Vue 3.6 (beta)"
69
66
  },
@@ -61,9 +61,6 @@
61
61
  "message": "选择要包含的试验特性:",
62
62
  "hint": "(↑/↓ 切换,空格选择,a 全选,回车确认)"
63
63
  },
64
- "needsViteBeta": {
65
- "message": "Vite 8(测试版)"
66
- },
67
64
  "needsVueBeta": {
68
65
  "message": "Vue 3.6(测试版)"
69
66
  },
@@ -61,9 +61,6 @@
61
61
  "message": "請選擇要包含的試驗特性:",
62
62
  "hint": "(↑/↓ 切換,空格選擇,a 全選,enter 確認)"
63
63
  },
64
- "needsViteBeta": {
65
- "message": "Vite 8(測試版)"
66
- },
67
64
  "needsVueBeta": {
68
65
  "message": "Vue 3.6(測試版)"
69
66
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "3.22.1",
3
+ "version": "3.22.2",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered Vue project",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/vuejs/create-vue#readme",
@@ -30,39 +30,28 @@
30
30
  "devDependencies": {
31
31
  "@clack/prompts": "^1.1.0",
32
32
  "@tsconfig/node24": "^24.0.4",
33
- "@types/eslint": "^9.6.1",
34
33
  "@types/node": "^24.12.0",
35
- "@types/prompts": "^2.4.9",
36
- "@vue/tsconfig": "^0.9.0",
34
+ "@vue/tsconfig": "^0.9.1",
37
35
  "ejs": "^3.1.10",
38
- "husky": "^9.1.7",
39
- "lint-staged": "^16.3.3",
40
- "oxfmt": "^0.37.0",
41
- "oxlint": "~1.51.0",
42
36
  "picocolors": "^1.1.1",
43
- "rolldown": "1.0.0-rc.8",
37
+ "rolldown": "1.0.0-rc.12",
44
38
  "rollup-plugin-license": "^3.7.0",
45
- "vitest": "^4.0.18",
39
+ "vite-plus": "latest",
40
+ "vitest": "npm:@voidzero-dev/vite-plus-test@latest",
46
41
  "zx": "^8.8.5"
47
42
  },
48
- "lint-staged": {
49
- "*.{js,ts,vue,json}": [
50
- "oxfmt --no-error-on-unmatched-pattern",
51
- "oxlint --fix"
52
- ]
53
- },
54
43
  "engines": {
55
44
  "node": "^20.19.0 || >=22.12.0"
56
45
  },
57
46
  "scripts": {
58
- "format": "oxfmt",
59
- "format-check": "oxfmt --check",
60
- "lint": "oxlint . --fix --ignore-pattern playground",
47
+ "format": "vp fmt",
48
+ "format-check": "vp fmt --check",
49
+ "lint": "vp lint . --fix --ignore-pattern playground",
61
50
  "build": "rolldown -c rolldown.config.ts",
62
51
  "snapshot": "zx ./scripts/snapshot.mjs",
63
52
  "pretest": "pnpm run build && pnpm run snapshot",
64
53
  "test": "zx ./scripts/test.mjs",
65
- "test:unit": "vitest",
54
+ "test:unit": "vp test",
66
55
  "preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'",
67
56
  "postversion": "zx ./scripts/postversion.mjs"
68
57
  }
@@ -7,12 +7,12 @@
7
7
  "preview": "vite preview"
8
8
  },
9
9
  "dependencies": {
10
- "vue": "^3.5.30"
10
+ "vue": "^3.5.31"
11
11
  },
12
12
  "devDependencies": {
13
- "@vitejs/plugin-vue": "^6.0.4",
14
- "vite": "^7.3.1",
15
- "vite-plugin-vue-devtools": "^8.0.7"
13
+ "@vitejs/plugin-vue": "^6.0.5",
14
+ "vite": "^8.0.3",
15
+ "vite-plugin-vue-devtools": "^8.1.1"
16
16
  },
17
17
  "engines": {
18
18
  "node": "^20.19.0 || >=22.12.0"
@@ -5,7 +5,7 @@
5
5
  "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'"
6
6
  },
7
7
  "devDependencies": {
8
- "cypress": "^15.11.0",
8
+ "cypress": "^15.13.0",
9
9
  "start-server-and-test": "^2.1.5"
10
10
  }
11
11
  }
@@ -4,9 +4,9 @@
4
4
  "test:unit:dev": "cypress open --component"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.5.30"
7
+ "vue": "^3.5.31"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^15.11.0"
10
+ "cypress": "^15.13.0"
11
11
  }
12
12
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.30"
3
+ "vue": "^3.5.31"
4
4
  },
5
5
  "devDependencies": {
6
- "@vitejs/plugin-vue-jsx": "^5.1.4",
7
- "vite": "^7.3.1"
6
+ "@vitejs/plugin-vue-jsx": "^5.1.5",
7
+ "vite": "^8.0.3"
8
8
  }
9
9
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "pinia": "^3.0.4",
4
- "vue": "^3.5.30"
4
+ "vue": "^3.5.31"
5
5
  }
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.5.30",
4
- "vue-router": "^5.0.3"
3
+ "vue": "^3.5.31",
4
+ "vue-router": "^5.0.4"
5
5
  }
6
6
  }
@@ -7,7 +7,7 @@
7
7
  "devDependencies": {
8
8
  "@types/node": "^24.12.0",
9
9
  "npm-run-all2": "^8.0.4",
10
- "typescript": "~5.9.3",
11
- "vue-tsc": "^3.2.5"
10
+ "typescript": "~6.0.0",
11
+ "vue-tsc": "^3.2.6"
12
12
  }
13
13
  }
@@ -3,11 +3,11 @@
3
3
  "test:unit": "vitest"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.5.30"
6
+ "vue": "^3.5.31"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.4.6",
10
- "jsdom": "^28.1.0",
11
- "vitest": "^4.0.18"
10
+ "jsdom": "^29.0.1",
11
+ "vitest": "^4.1.2"
12
12
  }
13
13
  }
@@ -3,6 +3,6 @@
3
3
  "format": "oxfmt src/"
4
4
  },
5
5
  "devDependencies": {
6
- "oxfmt": "^0.37.0"
6
+ "oxfmt": "^0.42.0"
7
7
  }
8
8
  }
@@ -3,7 +3,7 @@
3
3
  "lint": "eslint . --fix --cache"
4
4
  },
5
5
  "devDependencies": {
6
- "eslint": "^10.0.3",
6
+ "eslint": "^10.1.0",
7
7
  "eslint-plugin-vue": "~10.8.0"
8
8
  }
9
9
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@eslint/js": "^10.0.1",
4
- "eslint": "^10.0.3",
4
+ "eslint": "^10.1.0",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
6
  "globals": "^17.4.0"
7
7
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@vue/eslint-config-typescript": "^14.7.0",
4
- "eslint": "^10.0.3",
4
+ "eslint": "^10.1.0",
5
5
  "eslint-plugin-vue": "~10.8.0",
6
6
  "jiti": "^2.6.1",
7
- "typescript": "~5.9.3"
7
+ "typescript": "~6.0.0"
8
8
  }
9
9
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-cypress": "^6.1.0"
3
+ "eslint-plugin-cypress": "^6.2.1"
4
4
  }
5
5
  }
@@ -5,8 +5,8 @@
5
5
  "lint": "run-s lint:*"
6
6
  },
7
7
  "devDependencies": {
8
- "eslint-plugin-oxlint": "~1.51.0",
8
+ "eslint-plugin-oxlint": "~1.57.0",
9
9
  "npm-run-all2": "^8.0.4",
10
- "oxlint": "~1.51.0"
10
+ "oxlint": "~1.57.0"
11
11
  }
12
12
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "eslint-plugin-playwright": "^2.9.0"
3
+ "eslint-plugin-playwright": "^2.10.1"
4
4
  }
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@vitest/eslint-plugin": "^1.6.10"
3
+ "@vitest/eslint-plugin": "^1.6.13"
4
4
  }
5
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
3
  "@tsconfig/node24": "^24.0.4",
4
- "@vue/tsconfig": "^0.9.0"
4
+ "@vue/tsconfig": "^0.9.1"
5
5
  }
6
6
  }
@@ -4,6 +4,10 @@
4
4
  "exclude": ["./support/component.*"],
5
5
  "compilerOptions": {
6
6
  "isolatedModules": false,
7
- "types": ["cypress"]
7
+ "types": ["cypress"],
8
+
9
+ // FIXME: Remove this when Cypress officially supports TypeScript 6.0
10
+ // https://github.com/cypress-io/cypress/issues/33511
11
+ "ignoreDeprecations": "6.0"
8
12
  }
9
13
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@types/jsdom": "^28.0.0"
3
+ "@types/jsdom": "^28.0.1"
4
4
  }
5
5
  }