nuxt-nightly 4.1.4-29330724.5589a44a → 4.2.0-29331084.23aa59d6
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.
- package/dist/index.mjs +5 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -2206,7 +2206,8 @@ function resolveComponentTypes(app, baseDir) {
|
|
|
2206
2206
|
if (c.island) {
|
|
2207
2207
|
continue;
|
|
2208
2208
|
}
|
|
2209
|
-
|
|
2209
|
+
const filePath = c.declarationPath || c.filePath;
|
|
2210
|
+
let type = `typeof ${genDynamicImport(isAbsolute(filePath) ? relative(baseDir, filePath).replace(NON_VUE_RE, "") : filePath.replace(NON_VUE_RE, ""), { wrapper: false })}['${c.export}']`;
|
|
2210
2211
|
if (c.mode === "server") {
|
|
2211
2212
|
if (app.components.some((other) => other.pascalName === c.pascalName && other.mode === "client")) {
|
|
2212
2213
|
if (c.filePath.startsWith(serverPlaceholderPath)) {
|
|
@@ -2348,6 +2349,8 @@ async function scanComponents(dirs, srcDir) {
|
|
|
2348
2349
|
preload: Boolean(dir.preload),
|
|
2349
2350
|
// specific to the file
|
|
2350
2351
|
filePath,
|
|
2352
|
+
// Use declarationPath from directory config if available, otherwise default to filePath
|
|
2353
|
+
declarationPath: dir.declarationPath || filePath,
|
|
2351
2354
|
pascalName,
|
|
2352
2355
|
kebabName,
|
|
2353
2356
|
chunkName,
|
|
@@ -3830,7 +3833,7 @@ function addDeclarationTemplates(ctx, options) {
|
|
|
3830
3833
|
});
|
|
3831
3834
|
}
|
|
3832
3835
|
|
|
3833
|
-
const version = "4.
|
|
3836
|
+
const version = "4.2.0-29331084.23aa59d6";
|
|
3834
3837
|
|
|
3835
3838
|
const createImportProtectionPatterns = (nuxt, options) => {
|
|
3836
3839
|
const patterns = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-nightly",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-29331084.23aa59d6",
|
|
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.
|
|
71
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.
|
|
70
|
+
"@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.0-29331084.23aa59d6",
|
|
71
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331084.23aa59d6",
|
|
72
72
|
"@nuxt/telemetry": "^2.6.6",
|
|
73
|
-
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.
|
|
73
|
+
"@nuxt/vite-builder": "npm:@nuxt/vite-builder-nightly@4.2.0-29331084.23aa59d6",
|
|
74
74
|
"@unhead/vue": "^2.0.14",
|
|
75
75
|
"@vue/shared": "^3.5.22",
|
|
76
76
|
"c12": "^3.3.0",
|