nuxt-nightly 4.1.1-29280872.e12125a9 → 4.1.1-29281581.418bafeb

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 +5 -6
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -2174,11 +2174,10 @@ const componentsIslandsTemplate = {
2174
2174
  }
2175
2175
  };
2176
2176
  const NON_VUE_RE = /\b\.(?!vue)\w+$/g;
2177
- function resolveComponentTypes(nuxt, app) {
2178
- const buildDir = nuxt.options.buildDir;
2177
+ function resolveComponentTypes(app, baseDir) {
2179
2178
  const serverPlaceholderPath = resolve(distDir, "app/components/server-placeholder");
2180
2179
  const componentTypes = app.components.filter((c) => !c.island).map((c) => {
2181
- const type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(buildDir, c.filePath).replace(NON_VUE_RE, "") : c.filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
2180
+ const type = `typeof ${genDynamicImport(isAbsolute(c.filePath) ? relative(baseDir, c.filePath).replace(NON_VUE_RE, "") : c.filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
2182
2181
  const isServerOnly = c.mode === "server" && c.filePath !== serverPlaceholderPath && !app.components.some((other) => other.pascalName === c.pascalName && other.mode === "client");
2183
2182
  return [
2184
2183
  c.pascalName,
@@ -2204,7 +2203,7 @@ const componentsDeclarationTemplate = {
2204
2203
  filename: "components.d.ts",
2205
2204
  write: true,
2206
2205
  getContents: ({ app, nuxt }) => {
2207
- const componentTypes = resolveComponentTypes(nuxt, app);
2206
+ const componentTypes = resolveComponentTypes(app, nuxt.options.buildDir);
2208
2207
  return `
2209
2208
  import type { DefineComponent, SlotsType } from 'vue'
2210
2209
  ${nuxt.options.experimental.componentIslands ? islandType : ""}
@@ -2220,7 +2219,7 @@ export const componentNames: string[]
2220
2219
  const componentsTypeTemplate = {
2221
2220
  filename: "types/components.d.ts",
2222
2221
  getContents: ({ app, nuxt }) => {
2223
- const componentTypes = resolveComponentTypes(nuxt, app);
2222
+ const componentTypes = resolveComponentTypes(app, join(nuxt.options.buildDir, "types"));
2224
2223
  return `
2225
2224
  import type { DefineComponent, SlotsType } from 'vue'
2226
2225
  ${nuxt.options.experimental.componentIslands ? islandType : ""}
@@ -3758,7 +3757,7 @@ function addDeclarationTemplates(ctx, options) {
3758
3757
  });
3759
3758
  }
3760
3759
 
3761
- const version = "4.1.1-29280872.e12125a9";
3760
+ const version = "4.1.1-29281581.418bafeb";
3762
3761
 
3763
3762
  const createImportProtectionPatterns = (nuxt, options) => {
3764
3763
  const patterns = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-nightly",
3
- "version": "4.1.1-29280872.e12125a9",
3
+ "version": "4.1.1-29281581.418bafeb",
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.3",
70
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.1-29280872.e12125a9",
71
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.1-29280872.e12125a9",
70
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.1.1-29281581.418bafeb",
71
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.1-29281581.418bafeb",
72
72
  "@nuxt/telemetry": "^2.6.6",
73
- "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.1-29280872.e12125a9",
73
+ "@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.1.1-29281581.418bafeb",
74
74
  "@unhead/vue": "^2.0.14",
75
75
  "@vue/shared": "^3.5.20",
76
76
  "c12": "^3.2.0",