create-vue 3.21.0 → 3.21.1
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 +1 -1
- package/bundle.js +11 -9
- package/package.json +6 -6
- package/template/base/.vscode/settings.json +1 -1
- package/template/base/package.json +3 -3
- package/template/config/cypress/package.json +1 -1
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/package.json +2 -2
- package/template/config/nightwatch/package.json +2 -2
- package/template/config/nightwatch-ct/package.json +1 -1
- package/template/config/pinia/package.json +1 -1
- package/template/config/playwright/package.json +1 -1
- package/template/config/router/package.json +2 -2
- package/template/config/typescript/package.json +1 -1
- package/template/config/vitest/package.json +2 -2
- package/template/formatting/oxfmt/package.json +1 -1
- package/template/linting/base/package.json +1 -1
- package/template/linting/core/js/package.json +1 -1
- package/template/linting/core/ts/package.json +1 -1
- package/template/linting/cypress/package.json +1 -1
- package/template/linting/oxlint/_oxlintrc.json.ejs +1 -1
- package/template/linting/oxlint/package.json +2 -2
- package/template/linting/vitest/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# create-vue <a href="https://
|
|
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.21.
|
|
2
|
+
/*! create-vue v3.21.1 | MIT */
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -2134,7 +2134,6 @@ function deepMerge(target, obj) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
return target;
|
|
2136
2136
|
}
|
|
2137
|
-
var deepMerge_default = deepMerge;
|
|
2138
2137
|
|
|
2139
2138
|
//#endregion
|
|
2140
2139
|
//#region utils/sortDependencies.ts
|
|
@@ -2177,17 +2176,17 @@ function renderTemplate(src, dest, callbacks) {
|
|
|
2177
2176
|
}
|
|
2178
2177
|
const filename = path$1.basename(src);
|
|
2179
2178
|
if (filename === "package.json" && fs.existsSync(dest)) {
|
|
2180
|
-
const pkg = sortDependencies(
|
|
2179
|
+
const pkg = sortDependencies(deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8"))));
|
|
2181
2180
|
fs.writeFileSync(dest, JSON.stringify(pkg, null, 2) + "\n");
|
|
2182
2181
|
return;
|
|
2183
2182
|
}
|
|
2184
2183
|
if (filename === "extensions.json" && fs.existsSync(dest)) {
|
|
2185
|
-
const extensions =
|
|
2184
|
+
const extensions = deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
|
|
2186
2185
|
fs.writeFileSync(dest, JSON.stringify(extensions, null, 2) + "\n");
|
|
2187
2186
|
return;
|
|
2188
2187
|
}
|
|
2189
2188
|
if (filename === "settings.json" && fs.existsSync(dest)) {
|
|
2190
|
-
const settings =
|
|
2189
|
+
const settings = deepMerge(JSON.parse(fs.readFileSync(dest, "utf8")), JSON.parse(fs.readFileSync(src, "utf8")));
|
|
2191
2190
|
fs.writeFileSync(dest, JSON.stringify(settings, null, 2) + "\n");
|
|
2192
2191
|
return;
|
|
2193
2192
|
}
|
|
@@ -2208,7 +2207,6 @@ function renderTemplate(src, dest, callbacks) {
|
|
|
2208
2207
|
}
|
|
2209
2208
|
fs.copyFileSync(src, dest);
|
|
2210
2209
|
}
|
|
2211
|
-
var renderTemplate_default = renderTemplate;
|
|
2212
2210
|
|
|
2213
2211
|
//#endregion
|
|
2214
2212
|
//#region utils/directoryTraverse.ts
|
|
@@ -2548,7 +2546,7 @@ function getPackageManagerOptions(preferred) {
|
|
|
2548
2546
|
//#endregion
|
|
2549
2547
|
//#region package.json
|
|
2550
2548
|
var name = "create-vue";
|
|
2551
|
-
var version = "3.21.
|
|
2549
|
+
var version = "3.21.1";
|
|
2552
2550
|
|
|
2553
2551
|
//#endregion
|
|
2554
2552
|
//#region index.ts
|
|
@@ -2571,6 +2569,7 @@ const FEATURE_FLAGS = [
|
|
|
2571
2569
|
"prettier",
|
|
2572
2570
|
"eslint-with-prettier",
|
|
2573
2571
|
"oxlint",
|
|
2572
|
+
"oxfmt",
|
|
2574
2573
|
"vite-beta",
|
|
2575
2574
|
"vue-beta"
|
|
2576
2575
|
];
|
|
@@ -2850,7 +2849,7 @@ async function init() {
|
|
|
2850
2849
|
const templateRoot = fileURLToPath(new URL("./template", import.meta.url));
|
|
2851
2850
|
const callbacks = [];
|
|
2852
2851
|
const render = function render(templateName) {
|
|
2853
|
-
|
|
2852
|
+
renderTemplate(path$1.resolve(templateRoot, templateName), root, callbacks);
|
|
2854
2853
|
};
|
|
2855
2854
|
const replaceVite = () => {
|
|
2856
2855
|
const content = fs.readFileSync(path$1.resolve(root, "package.json"), "utf-8");
|
|
@@ -2906,7 +2905,10 @@ async function init() {
|
|
|
2906
2905
|
render("linting/oxlint");
|
|
2907
2906
|
callbacks.push(async (dataStore) => {
|
|
2908
2907
|
const oxlintrcPath = path$1.resolve(root, ".oxlintrc.json");
|
|
2909
|
-
dataStore[oxlintrcPath] = {
|
|
2908
|
+
dataStore[oxlintrcPath] = {
|
|
2909
|
+
needsTypeScript,
|
|
2910
|
+
needsVitest
|
|
2911
|
+
};
|
|
2910
2912
|
});
|
|
2911
2913
|
if (needsPrettier || needsOxfmt) render("linting/formatter");
|
|
2912
2914
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.21.
|
|
3
|
+
"version": "3.21.1",
|
|
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",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"@clack/prompts": "^0.11.0",
|
|
32
32
|
"@tsconfig/node24": "^24.0.4",
|
|
33
33
|
"@types/eslint": "^9.6.1",
|
|
34
|
-
"@types/node": "^24.10.
|
|
34
|
+
"@types/node": "^24.10.13",
|
|
35
35
|
"@types/prompts": "^2.4.9",
|
|
36
36
|
"@vue/tsconfig": "^0.8.1",
|
|
37
37
|
"ejs": "^3.1.10",
|
|
38
38
|
"husky": "^9.1.7",
|
|
39
39
|
"lint-staged": "^16.2.7",
|
|
40
|
-
"oxfmt": "^0.
|
|
41
|
-
"oxlint": "~1.
|
|
40
|
+
"oxfmt": "^0.32.0",
|
|
41
|
+
"oxlint": "~1.47.0",
|
|
42
42
|
"picocolors": "^1.1.1",
|
|
43
|
-
"rolldown": "1.0.0-rc.
|
|
44
|
-
"rollup-plugin-license": "^3.
|
|
43
|
+
"rolldown": "1.0.0-rc.4",
|
|
44
|
+
"rollup-plugin-license": "^3.7.0",
|
|
45
45
|
"vitest": "^4.0.18",
|
|
46
46
|
"zx": "^8.8.5"
|
|
47
47
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"explorer.fileNesting.enabled": true,
|
|
3
3
|
"explorer.fileNesting.patterns": {
|
|
4
|
-
"tsconfig.json": "tsconfig.*.json, env.d.ts",
|
|
4
|
+
"tsconfig.json": "tsconfig.*.json, env.d.ts, typed-router.d.ts",
|
|
5
5
|
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
|
|
6
6
|
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .oxlint*, oxlint*, .oxfmt*, .prettier*, prettier*, .editorconfig"
|
|
7
7
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"preview": "vite preview"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"vue": "^3.5.
|
|
10
|
+
"vue": "^3.5.28"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
13
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
14
14
|
"vite": "^7.3.1",
|
|
15
|
-
"vite-plugin-vue-devtools": "^8.0.
|
|
15
|
+
"vite-plugin-vue-devtools": "^8.0.6"
|
|
16
16
|
},
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": "^20.19.0 || >=22.12.0"
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
},
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@nightwatch/vue": "^3.1.2",
|
|
7
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
8
|
-
"chromedriver": "^145.0.
|
|
7
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
8
|
+
"chromedriver": "^145.0.3",
|
|
9
9
|
"geckodriver": "^6.1.0",
|
|
10
10
|
"nightwatch": "^3.15.0",
|
|
11
11
|
"ts-node": "^10.9.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"],
|
|
3
|
+
"plugins": ["eslint"<%_ if (needsTypeScript) { _%>, "typescript"<%_ } _%>, "unicorn", "oxc", "vue"<%_ if (needsVitest) { _%>, "vitest"<%_ } _%>],
|
|
4
4
|
"env": {
|
|
5
5
|
"browser": true
|
|
6
6
|
},
|