nuxt-nightly 4.2.1-29372339.038f9d9f → 4.2.1-29373601.148264

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 +6 -4
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1444,7 +1444,7 @@ const pagesModule = defineNuxtModule({
1444
1444
  }
1445
1445
  }
1446
1446
  }
1447
- nuxt.hook("pages:extend", (pages) => {
1447
+ nuxt.hook("pages:resolved", (pages) => {
1448
1448
  if (nuxt.options.dev) {
1449
1449
  return;
1450
1450
  }
@@ -3404,8 +3404,10 @@ const componentsModule = defineNuxtModule({
3404
3404
  }
3405
3405
  nuxt.hook("app:resolve", async () => {
3406
3406
  const allDirs = [];
3407
- for (const layer of nuxt.options._layers) {
3408
- const layerDirs = normalizeDirs(layer.config.components, layer.config.srcDir, { priority: layer.config.srcDir === nuxt.options.srcDir ? 1 : 0 });
3407
+ const layerCount = nuxt.options._layers.length;
3408
+ for (const [i, layer] of nuxt.options._layers.entries()) {
3409
+ const priority = layerCount - i;
3410
+ const layerDirs = normalizeDirs(layer.config.components, layer.config.srcDir, { priority });
3409
3411
  allDirs.push(...layerDirs);
3410
3412
  }
3411
3413
  await nuxt.callHook("components:dirs", allDirs);
@@ -3833,7 +3835,7 @@ function addDeclarationTemplates(ctx, options) {
3833
3835
  });
3834
3836
  }
3835
3837
 
3836
- const version = "4.2.1-29372339.038f9d9f";
3838
+ const version = "4.2.1-29373601.00148264";
3837
3839
 
3838
3840
  function createImportProtectionPatterns(nuxt, options) {
3839
3841
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.2.1-29372339.038f9d9f",
3
+ "version": "4.2.1-29373601.00148264",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -67,11 +67,11 @@
67
67
  "@dxup/nuxt": "^0.2.1",
68
68
  "@nuxt/cli": "npm:@nuxt/cli-nightly@latest",
69
69
  "@nuxt/devtools": "^3.0.1",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.1-29372339.038f9d9f",
71
- "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.1-29372339.038f9d9f",
72
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.1-29372339.038f9d9f",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.1-29373601.00148264",
71
+ "@nuxt/nitro-server": "npm:@nuxt/nitro-server-nightly@4.2.1-29373601.00148264",
72
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.1-29373601.00148264",
73
73
  "@nuxt/telemetry": "^2.6.6",
74
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.1-29372339.038f9d9f",
74
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.1-29373601.00148264",
75
75
  "@unhead/vue": "^2.0.19",
76
76
  "@vue/shared": "^3.5.22",
77
77
  "c12": "^3.3.1",