@nuxt/kit-nightly 4.1.2-29293231.4568e845 → 4.1.2-29293741.3f7624b3

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 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -936,7 +936,10 @@ async function loadNuxt(opts) {
936
936
  opts.cwd = resolve(opts.cwd || opts.rootDir || ".");
937
937
  opts.overrides ||= opts.config || {};
938
938
  opts.overrides.dev = !!opts.dev;
939
- const resolvedPath = ["nuxt-nightly", "nuxt"].map((pkg) => resolveModulePath(pkg, { try: true, from: [directoryToURL(opts.cwd)] })).filter((p) => !!p).sort((a, b) => b.length - a.length)[0];
939
+ const resolvedPath = ["nuxt-nightly", "nuxt"].reduce((resolvedPath2, pkg) => {
940
+ const path = resolveModulePath(pkg, { try: true, from: [directoryToURL(opts.cwd)] });
941
+ return path && path.length > resolvedPath2.length ? path : resolvedPath2;
942
+ }, "");
940
943
  if (!resolvedPath) {
941
944
  throw new Error(`Cannot find any nuxt version from ${opts.cwd}`);
942
945
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.1.2-29293231.4568e845",
3
+ "version": "4.1.2-29293741.3f7624b3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -47,7 +47,7 @@
47
47
  "untyped": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.2-29293231.4568e845",
50
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.2-29293741.3f7624b3",
51
51
  "@rspack/core": "1.5.3",
52
52
  "@types/semver": "7.7.1",
53
53
  "hookable": "5.5.3",