@nuxt/kit-nightly 4.2.0-29331084.23aa59d6 → 4.2.0-29331207.25e91a2b

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.d.mts CHANGED
@@ -236,7 +236,7 @@ declare function addComponentsDir(dir: ComponentsDir, opts?: {
236
236
  type AddComponentOptions = {
237
237
  name: string;
238
238
  filePath: string;
239
- } & Partial<Exclude<Component, 'shortPath' | 'async' | 'level' | 'import' | 'asyncImport'>>;
239
+ } & Partial<Exclude<Component, 'async' | 'level' | 'import' | 'asyncImport'>>;
240
240
  /**
241
241
  * This utility takes a file path or npm package that is scanned for named exports, which are get added automatically
242
242
  */
@@ -501,6 +501,8 @@ interface ResolveModuleOptions {
501
501
  /** @deprecated use `url` with URLs pointing at a file - never a directory */
502
502
  paths?: string | string[];
503
503
  url?: URL | URL[];
504
+ /** @default ['.js', '.mjs', '.cjs', '.ts', '.mts', '.cts'] */
505
+ extensions?: string[];
504
506
  }
505
507
  declare function directoryToURL(dir: string): URL;
506
508
  /**
package/dist/index.d.ts CHANGED
@@ -236,7 +236,7 @@ declare function addComponentsDir(dir: ComponentsDir, opts?: {
236
236
  type AddComponentOptions = {
237
237
  name: string;
238
238
  filePath: string;
239
- } & Partial<Exclude<Component, 'shortPath' | 'async' | 'level' | 'import' | 'asyncImport'>>;
239
+ } & Partial<Exclude<Component, 'async' | 'level' | 'import' | 'asyncImport'>>;
240
240
  /**
241
241
  * This utility takes a file path or npm package that is scanned for named exports, which are get added automatically
242
242
  */
@@ -501,6 +501,8 @@ interface ResolveModuleOptions {
501
501
  /** @deprecated use `url` with URLs pointing at a file - never a directory */
502
502
  paths?: string | string[];
503
503
  url?: URL | URL[];
504
+ /** @default ['.js', '.mjs', '.cjs', '.ts', '.mts', '.cts'] */
505
+ extensions?: string[];
504
506
  }
505
507
  declare function directoryToURL(dir: string): URL;
506
508
  /**
package/dist/index.mjs CHANGED
@@ -235,7 +235,7 @@ function resolveModule(id, options) {
235
235
  return resolveModulePath(id, {
236
236
  // eslint-disable-next-line @typescript-eslint/no-deprecated
237
237
  from: options?.url ?? options?.paths ?? [import.meta.url],
238
- extensions: [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts"]
238
+ extensions: options?.extensions ?? [".js", ".mjs", ".cjs", ".ts", ".mts", ".cts"]
239
239
  });
240
240
  }
241
241
  async function importModule(id, opts) {
@@ -1254,7 +1254,6 @@ function normalizeComponent(opts) {
1254
1254
  prefetch: false,
1255
1255
  preload: false,
1256
1256
  mode: "all",
1257
- shortPath: opts.filePath,
1258
1257
  priority: 0,
1259
1258
  meta: {},
1260
1259
  ...opts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.2.0-29331084.23aa59d6",
3
+ "version": "4.2.0-29331207.25e91a2b",
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.2.0-29331084.23aa59d6",
50
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.0-29331207.25e91a2b",
51
51
  "@rspack/core": "1.5.8",
52
52
  "@types/semver": "7.7.1",
53
53
  "hookable": "5.5.3",