@nuxt/kit-nightly 4.2.3-29424584.c1b3590f → 4.2.3-29425455.7d502292

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 +3 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import { resolve, relative, join, dirname, normalize, isAbsolute, basename, pars
12
12
  import { createJiti } from 'jiti';
13
13
  import { parseNodeModulePath, interopDefault, lookupNodeModuleSubpath, resolveModuleExportNames } from 'mlly';
14
14
  import { resolveModulePath, resolveModuleURL } from 'exsolve';
15
- import { isRelative, withTrailingSlash as withTrailingSlash$2 } from 'ufo';
15
+ import { isRelative, withTrailingSlash as withTrailingSlash$2, withoutTrailingSlash } from 'ufo';
16
16
  import { read, update } from 'rc9';
17
17
  import semver, { gte } from 'semver';
18
18
  import { captureStackTrace } from 'errx';
@@ -887,7 +887,7 @@ async function loadNuxtConfig(opts) {
887
887
  const localLayers = (await glob("layers/*", {
888
888
  onlyDirectories: true,
889
889
  cwd: opts.cwd || process.cwd()
890
- })).map((d) => d.endsWith("/") ? d.substring(0, d.length - 1) : d).sort((a, b) => b.localeCompare(a));
890
+ })).map((d) => withTrailingSlash$2(d)).sort((a, b) => b.localeCompare(a));
891
891
  opts.overrides = defu$1(opts.overrides, { _extends: localLayers });
892
892
  const { configFile, layers = [], cwd, config: nuxtConfig, meta } = await withDefineNuxtConfig(
893
893
  () => loadConfig({
@@ -925,7 +925,7 @@ async function loadNuxtConfig(opts) {
925
925
  }
926
926
  const _layers = [];
927
927
  const processedLayers = /* @__PURE__ */ new Set();
928
- const localRelativePaths = new Set(localLayers);
928
+ const localRelativePaths = new Set(localLayers.map((layer) => withoutTrailingSlash(layer)));
929
929
  for (const layer of layers) {
930
930
  const resolvedRootDir = layer.config?.rootDir ?? layer.cwd;
931
931
  layer.config = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.2.3-29424584.c1b3590f",
3
+ "version": "4.2.3-29425455.7d502292",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -45,7 +45,7 @@
45
45
  "untyped": "^2.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29424584.c1b3590f",
48
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.3-29425455.7d502292",
49
49
  "@rspack/core": "1.6.7",
50
50
  "@types/semver": "7.7.1",
51
51
  "hookable": "5.5.3",