@nuxt/kit 3.17.3 → 3.17.4

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. package/package.json +8 -8
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(() => null);
2461
- return dirFiles && dirFiles.includes(basename(path));
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 && localLayers.includes(relative(cwd, layer.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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.17.3",
3
+ "version": "3.17.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -23,7 +23,7 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "c12": "^3.0.3",
26
+ "c12": "^3.0.4",
27
27
  "consola": "^3.4.2",
28
28
  "defu": "^6.1.4",
29
29
  "destr": "^2.0.5",
@@ -38,7 +38,7 @@
38
38
  "pathe": "^2.0.3",
39
39
  "pkg-types": "^2.1.0",
40
40
  "scule": "^1.3.0",
41
- "semver": "^7.7.1",
41
+ "semver": "^7.7.2",
42
42
  "std-env": "^3.9.0",
43
43
  "tinyglobby": "^0.2.13",
44
44
  "ufo": "^1.6.1",
@@ -47,17 +47,17 @@
47
47
  "untyped": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@rspack/core": "1.3.9",
50
+ "@rspack/core": "1.3.11",
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.11",
55
+ "nitropack": "2.11.12",
56
56
  "unbuild": "3.5.0",
57
57
  "vite": "6.3.5",
58
- "vitest": "3.1.3",
59
- "webpack": "5.99.5",
60
- "@nuxt/schema": "3.17.3"
58
+ "vitest": "3.1.4",
59
+ "webpack": "5.99.8",
60
+ "@nuxt/schema": "3.17.4"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=18.12.0"