@nuxt/kit 3.17.3 → 3.17.5
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 +7 -7
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -2457,8 +2457,8 @@ async function _resolvePathGranularly(path, opts = {}) {
|
|
|
2457
2457
|
};
|
|
2458
2458
|
}
|
|
2459
2459
|
async function existsSensitive(path) {
|
|
2460
|
-
const dirFiles = await promises.readdir(dirname(path)).catch(() =>
|
|
2461
|
-
return dirFiles
|
|
2460
|
+
const dirFiles = new Set(await promises.readdir(dirname(path)).catch(() => []));
|
|
2461
|
+
return dirFiles.has(basename(path));
|
|
2462
2462
|
}
|
|
2463
2463
|
function existsInVFS(path, nuxt = tryUseNuxt()) {
|
|
2464
2464
|
if (!nuxt) {
|
|
@@ -2654,6 +2654,7 @@ async function loadNuxtConfig(opts) {
|
|
|
2654
2654
|
}
|
|
2655
2655
|
const _layers = [];
|
|
2656
2656
|
const processedLayers = /* @__PURE__ */ new Set();
|
|
2657
|
+
const localRelativePaths = new Set(localLayers);
|
|
2657
2658
|
for (const layer of layers) {
|
|
2658
2659
|
layer.config ||= {};
|
|
2659
2660
|
layer.config.rootDir ??= layer.cwd;
|
|
@@ -2665,7 +2666,7 @@ async function loadNuxtConfig(opts) {
|
|
|
2665
2666
|
if (!layer.configFile || layer.configFile.endsWith(".nuxtrc")) {
|
|
2666
2667
|
continue;
|
|
2667
2668
|
}
|
|
2668
|
-
if (layer.cwd && cwd &&
|
|
2669
|
+
if (layer.cwd && cwd && localRelativePaths.has(relative(cwd, layer.cwd))) {
|
|
2669
2670
|
layer.meta ||= {};
|
|
2670
2671
|
layer.meta.name ||= basename(layer.cwd);
|
|
2671
2672
|
}
|
|
@@ -3110,7 +3111,7 @@ function normalizeTemplate(template, buildDir) {
|
|
|
3110
3111
|
}
|
|
3111
3112
|
if (!template.filename) {
|
|
3112
3113
|
const srcPath = parse(template.src);
|
|
3113
|
-
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}`;
|
|
3114
3115
|
}
|
|
3115
3116
|
}
|
|
3116
3117
|
if (!template.src && !template.getContents) {
|
|
@@ -3330,12 +3331,11 @@ async function _generateTypes(nuxt) {
|
|
|
3330
3331
|
async function writeTypes(nuxt) {
|
|
3331
3332
|
const { tsConfig, declaration } = await _generateTypes(nuxt);
|
|
3332
3333
|
async function writeFile() {
|
|
3333
|
-
const GeneratedBy = "// Generated by nuxi";
|
|
3334
3334
|
const tsConfigPath = resolve(nuxt.options.buildDir, "tsconfig.json");
|
|
3335
3335
|
await promises.mkdir(nuxt.options.buildDir, { recursive: true });
|
|
3336
|
-
await promises.writeFile(tsConfigPath,
|
|
3336
|
+
await promises.writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2));
|
|
3337
3337
|
const declarationPath = resolve(nuxt.options.buildDir, "nuxt.d.ts");
|
|
3338
|
-
await promises.writeFile(declarationPath,
|
|
3338
|
+
await promises.writeFile(declarationPath, declaration);
|
|
3339
3339
|
}
|
|
3340
3340
|
nuxt.hook("builder:prepared", writeFile);
|
|
3341
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.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"c12": "^3.0.
|
|
26
|
+
"c12": "^3.0.4",
|
|
27
27
|
"consola": "^3.4.2",
|
|
28
28
|
"defu": "^6.1.4",
|
|
29
29
|
"destr": "^2.0.5",
|
|
30
30
|
"errx": "^0.1.0",
|
|
31
31
|
"exsolve": "^1.0.5",
|
|
32
|
-
"ignore": "^7.0.
|
|
32
|
+
"ignore": "^7.0.5",
|
|
33
33
|
"jiti": "^2.4.2",
|
|
34
34
|
"klona": "^2.0.6",
|
|
35
35
|
"knitwork": "^1.2.0",
|
|
@@ -38,26 +38,26 @@
|
|
|
38
38
|
"pathe": "^2.0.3",
|
|
39
39
|
"pkg-types": "^2.1.0",
|
|
40
40
|
"scule": "^1.3.0",
|
|
41
|
-
"semver": "^7.7.
|
|
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
46
|
"unimport": "^5.0.1",
|
|
47
47
|
"untyped": "^2.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@rspack/core": "1.3.
|
|
50
|
+
"@rspack/core": "1.3.13",
|
|
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.12",
|
|
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.0",
|
|
59
|
+
"webpack": "5.99.9",
|
|
60
|
+
"@nuxt/schema": "3.17.5"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=18.12.0"
|