@nuxt/kit-nightly 4.0.0-29018391.eb3473ae → 4.0.0-29018455.dd40cce5

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 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1061,7 +1061,7 @@ function normalizeTemplate(template, buildDir) {
1061
1061
  async function updateTemplates(options) {
1062
1062
  return await tryUseNuxt()?.hooks.callHook("builder:generateApp", options);
1063
1063
  }
1064
- const EXTENSION_RE = /\b\.\w+$/g;
1064
+ const EXTENSION_RE = /\b(?:\.d\.[cm]?ts|\.\w+)$/g;
1065
1065
  const excludedAlias = [/^@vue\/.*$/, /^#internal\/nuxt/];
1066
1066
  async function _generateTypes(nuxt) {
1067
1067
  const rootDirWithSlash = withTrailingSlash(nuxt.options.rootDir);
@@ -1184,7 +1184,11 @@ async function _generateTypes(nuxt) {
1184
1184
  /* file does not exist */
1185
1185
  );
1186
1186
  if (!stats) {
1187
- const resolvedModule = resolveModulePath(aliases[alias], { try: true, from: importPaths });
1187
+ const resolvedModule = resolveModulePath(aliases[alias], {
1188
+ try: true,
1189
+ from: importPaths,
1190
+ extensions: [...nuxt.options.extensions, ".d.ts", ".d.mts", ".d.cts"]
1191
+ });
1188
1192
  if (resolvedModule) {
1189
1193
  absolutePath = resolvedModule;
1190
1194
  stats = await promises.stat(resolvedModule).catch(() => null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.0.0-29018391.eb3473ae",
3
+ "version": "4.0.0-29018455.dd40cce5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -46,7 +46,7 @@
46
46
  "untyped": "^2.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.0-29018391.eb3473ae",
49
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.0-29018455.dd40cce5",
50
50
  "@rspack/core": "1.2.7",
51
51
  "@types/semver": "7.5.8",
52
52
  "nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",