nuxt-nightly 4.2.0-29331188.9ad35781 → 4.2.0-29331207.25e91a2b

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 -5
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -2281,7 +2281,7 @@ const ISLAND_RE = /\.island(?:\.global)?$/;
2281
2281
  const GLOBAL_RE = /\.global(?:\.island)?$/;
2282
2282
  const COMPONENT_MODE_RE = /(?<=\.)(client|server)(?:\.global|\.island)*$/;
2283
2283
  const MODE_REPLACEMENT_RE = /(?:\.(?:client|server))?(?:\.global|\.island)*$/;
2284
- async function scanComponents(dirs, srcDir) {
2284
+ async function scanComponents(dirs) {
2285
2285
  const components = [];
2286
2286
  const filePaths = /* @__PURE__ */ new Set();
2287
2287
  const scannedPaths = [];
@@ -2337,7 +2337,6 @@ async function scanComponents(dirs, srcDir) {
2337
2337
  }
2338
2338
  resolvedNames.set(pascalName + suffix, filePath);
2339
2339
  const kebabName = kebabCase(componentNameSegments);
2340
- const shortPath = relative(srcDir, filePath);
2341
2340
  const chunkName = "components/" + kebabName + suffix;
2342
2341
  let component = {
2343
2342
  // inheritable from directory configuration
@@ -2353,7 +2352,6 @@ async function scanComponents(dirs, srcDir) {
2353
2352
  pascalName,
2354
2353
  kebabName,
2355
2354
  chunkName,
2356
- shortPath,
2357
2355
  export: "default",
2358
2356
  // by default, give priority to scanned components
2359
2357
  priority: dir.priority ?? 1,
@@ -3485,7 +3483,7 @@ const componentsModule = defineNuxtModule({
3485
3483
  });
3486
3484
  const serverPlaceholderPath = await findPath(join(distDir, "app/components/server-placeholder")) ?? join(distDir, "app/components/server-placeholder");
3487
3485
  nuxt.hook("app:templates", async (app) => {
3488
- const newComponents = await scanComponents(componentDirs, nuxt.options.srcDir);
3486
+ const newComponents = await scanComponents(componentDirs);
3489
3487
  await nuxt.callHook("components:extend", newComponents);
3490
3488
  for (const component of newComponents) {
3491
3489
  if (!component._scanned && !(component.filePath in nuxt.vfs) && isAbsolute(component.filePath) && !existsSync(component.filePath)) {
@@ -3832,7 +3830,7 @@ function addDeclarationTemplates(ctx, options) {
3832
3830
  });
3833
3831
  }
3834
3832
 
3835
- const version = "4.2.0-29331188.9ad35781";
3833
+ const version = "4.2.0-29331207.25e91a2b";
3836
3834
 
3837
3835
  const createImportProtectionPatterns = (nuxt, options) => {
3838
3836
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.0-29331188.9ad35781",
3
+ "version": "4.2.0-29331207.25e91a2b",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,10 +67,10 @@
67
67
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
68
68
  "@nuxt/devalue": "^2.0.2",
69
69
  "@nuxt/devtools": "^2.6.5",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29331188.9ad35781",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331188.9ad35781",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29331207.25e91a2b",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331207.25e91a2b",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29331188.9ad35781",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29331207.25e91a2b",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.22",
76
76
  "c12": "^3.3.0",