@nuxt/kit-nightly 4.1.3-29299524.bb46d3b3 → 4.1.3-29299550.8e749b2f
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 +12 -8
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1277,18 +1277,21 @@ function addTypeTemplate(_template, context) {
|
|
|
1277
1277
|
throw new Error(`Invalid type template. Filename must end with .d.ts : "${template.filename}"`);
|
|
1278
1278
|
}
|
|
1279
1279
|
if (!context || context.nuxt) {
|
|
1280
|
-
nuxt.hook("prepare:types", (
|
|
1281
|
-
references
|
|
1280
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1281
|
+
payload.references ||= [];
|
|
1282
|
+
payload.references.push({ path: template.dst });
|
|
1282
1283
|
});
|
|
1283
1284
|
}
|
|
1284
1285
|
if (context?.node) {
|
|
1285
|
-
nuxt.hook("prepare:types", (
|
|
1286
|
-
nodeReferences
|
|
1286
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1287
|
+
payload.nodeReferences ||= [];
|
|
1288
|
+
payload.nodeReferences.push({ path: template.dst });
|
|
1287
1289
|
});
|
|
1288
1290
|
}
|
|
1289
1291
|
if (context?.shared) {
|
|
1290
|
-
nuxt.hook("prepare:types", (
|
|
1291
|
-
sharedReferences
|
|
1292
|
+
nuxt.hook("prepare:types", (payload) => {
|
|
1293
|
+
payload.sharedReferences ||= [];
|
|
1294
|
+
payload.sharedReferences.push({ path: template.dst });
|
|
1292
1295
|
});
|
|
1293
1296
|
}
|
|
1294
1297
|
if (!context || context.nuxt || context.shared) {
|
|
@@ -1299,8 +1302,9 @@ function addTypeTemplate(_template, context) {
|
|
|
1299
1302
|
});
|
|
1300
1303
|
}
|
|
1301
1304
|
if (context?.nitro) {
|
|
1302
|
-
nuxt.hook("nitro:prepare:types", (
|
|
1303
|
-
references
|
|
1305
|
+
nuxt.hook("nitro:prepare:types", (payload) => {
|
|
1306
|
+
payload.references ||= [];
|
|
1307
|
+
payload.references.push({ path: template.dst });
|
|
1304
1308
|
});
|
|
1305
1309
|
}
|
|
1306
1310
|
return template;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit-nightly",
|
|
3
|
-
"version": "4.1.3-
|
|
3
|
+
"version": "4.1.3-29299550.8e749b2f",
|
|
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.3-
|
|
50
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.3-29299550.8e749b2f",
|
|
51
51
|
"@rspack/core": "1.5.3",
|
|
52
52
|
"@types/semver": "7.7.1",
|
|
53
53
|
"hookable": "5.5.3",
|