@nuxt/kit 3.17.4 → 3.17.6
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/index.mjs +4 -5
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -2693,7 +2693,7 @@ async function loadNuxtSchema(cwd) {
|
|
|
2693
2693
|
const urls = [url];
|
|
2694
2694
|
const nuxtPath = resolveModuleURL("nuxt", { try: true, from: url }) ?? resolveModuleURL("nuxt-nightly", { try: true, from: url });
|
|
2695
2695
|
if (nuxtPath) {
|
|
2696
|
-
urls.unshift(
|
|
2696
|
+
urls.unshift(nuxtPath);
|
|
2697
2697
|
}
|
|
2698
2698
|
const schemaPath = resolveModuleURL("@nuxt/schema", { try: true, from: urls }) ?? "@nuxt/schema";
|
|
2699
2699
|
return await import(schemaPath).then((r) => r.NuxtConfigSchema);
|
|
@@ -3111,7 +3111,7 @@ function normalizeTemplate(template, buildDir) {
|
|
|
3111
3111
|
}
|
|
3112
3112
|
if (!template.filename) {
|
|
3113
3113
|
const srcPath = parse(template.src);
|
|
3114
|
-
template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash(template.src)}${srcPath.ext}`;
|
|
3114
|
+
template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash(template.src).replace(/-/g, "_")}${srcPath.ext}`;
|
|
3115
3115
|
}
|
|
3116
3116
|
}
|
|
3117
3117
|
if (!template.src && !template.getContents) {
|
|
@@ -3331,12 +3331,11 @@ async function _generateTypes(nuxt) {
|
|
|
3331
3331
|
async function writeTypes(nuxt) {
|
|
3332
3332
|
const { tsConfig, declaration } = await _generateTypes(nuxt);
|
|
3333
3333
|
async function writeFile() {
|
|
3334
|
-
const GeneratedBy = "// Generated by nuxi";
|
|
3335
3334
|
const tsConfigPath = resolve(nuxt.options.buildDir, "tsconfig.json");
|
|
3336
3335
|
await promises.mkdir(nuxt.options.buildDir, { recursive: true });
|
|
3337
|
-
await promises.writeFile(tsConfigPath,
|
|
3336
|
+
await promises.writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2));
|
|
3338
3337
|
const declarationPath = resolve(nuxt.options.buildDir, "nuxt.d.ts");
|
|
3339
|
-
await promises.writeFile(declarationPath,
|
|
3338
|
+
await promises.writeFile(declarationPath, declaration);
|
|
3340
3339
|
}
|
|
3341
3340
|
nuxt.hook("builder:prepared", writeFile);
|
|
3342
3341
|
await writeFile();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -28,36 +28,36 @@
|
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
29
|
"destr": "^2.0.5",
|
|
30
30
|
"errx": "^0.1.0",
|
|
31
|
-
"exsolve": "^1.0.
|
|
32
|
-
"ignore": "^7.0.
|
|
31
|
+
"exsolve": "^1.0.7",
|
|
32
|
+
"ignore": "^7.0.5",
|
|
33
33
|
"jiti": "^2.4.2",
|
|
34
34
|
"klona": "^2.0.6",
|
|
35
35
|
"knitwork": "^1.2.0",
|
|
36
36
|
"mlly": "^1.7.4",
|
|
37
37
|
"ohash": "^2.0.11",
|
|
38
38
|
"pathe": "^2.0.3",
|
|
39
|
-
"pkg-types": "^2.
|
|
39
|
+
"pkg-types": "^2.2.0",
|
|
40
40
|
"scule": "^1.3.0",
|
|
41
41
|
"semver": "^7.7.2",
|
|
42
42
|
"std-env": "^3.9.0",
|
|
43
|
-
"tinyglobby": "^0.2.
|
|
43
|
+
"tinyglobby": "^0.2.14",
|
|
44
44
|
"ufo": "^1.6.1",
|
|
45
45
|
"unctx": "^2.4.1",
|
|
46
|
-
"unimport": "^5.0
|
|
46
|
+
"unimport": "^5.1.0",
|
|
47
47
|
"untyped": "^2.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@rspack/core": "1.
|
|
50
|
+
"@rspack/core": "1.4.1",
|
|
51
51
|
"@types/lodash-es": "4.17.12",
|
|
52
52
|
"@types/semver": "7.7.0",
|
|
53
53
|
"hookable": "5.5.3",
|
|
54
54
|
"lodash-es": "4.17.21",
|
|
55
|
-
"nitropack": "2.11.
|
|
55
|
+
"nitropack": "2.11.13",
|
|
56
56
|
"unbuild": "3.5.0",
|
|
57
57
|
"vite": "6.3.5",
|
|
58
|
-
"vitest": "3.
|
|
59
|
-
"webpack": "5.99.
|
|
60
|
-
"@nuxt/schema": "3.17.
|
|
58
|
+
"vitest": "3.2.4",
|
|
59
|
+
"webpack": "5.99.9",
|
|
60
|
+
"@nuxt/schema": "3.17.6"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=18.12.0"
|