@nuxt/kit-nightly 4.0.4-29249079.262c00bb → 4.1.0-29249128.f25ce1df

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
@@ -7,6 +7,7 @@ import { RspackPluginInstance } from '@rspack/core';
7
7
  import { Plugin, UserConfig } from 'vite';
8
8
  import * as unctx from 'unctx';
9
9
  import { NitroRouteConfig, NitroEventHandler, NitroDevEventHandler, Nitro } from 'nitropack/types';
10
+ import { GlobOptions } from 'tinyglobby';
10
11
  import * as consola from 'consola';
11
12
  import { ConsolaOptions } from 'consola';
12
13
 
@@ -332,8 +333,15 @@ interface Resolver {
332
333
  */
333
334
  declare function createResolver(base: string | URL): Resolver;
334
335
  declare function resolveNuxtModule(base: string, paths: string[]): Promise<string[]>;
336
+ /**
337
+ * Resolve absolute file paths in the provided directory with respect to `.nuxtignore` and return them sorted.
338
+ * @param path path to the directory to resolve files in
339
+ * @param pattern glob pattern or an array of glob patterns to match files
340
+ * @param opts options for globbing
341
+ */
335
342
  declare function resolveFiles(path: string, pattern: string | string[], opts?: {
336
343
  followSymbolicLinks?: boolean;
344
+ ignore?: GlobOptions['ignore'];
337
345
  }): Promise<string[]>;
338
346
 
339
347
  /**
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import { RspackPluginInstance } from '@rspack/core';
7
7
  import { Plugin, UserConfig } from 'vite';
8
8
  import * as unctx from 'unctx';
9
9
  import { NitroRouteConfig, NitroEventHandler, NitroDevEventHandler, Nitro } from 'nitropack/types';
10
+ import { GlobOptions } from 'tinyglobby';
10
11
  import * as consola from 'consola';
11
12
  import { ConsolaOptions } from 'consola';
12
13
 
@@ -332,8 +333,15 @@ interface Resolver {
332
333
  */
333
334
  declare function createResolver(base: string | URL): Resolver;
334
335
  declare function resolveNuxtModule(base: string, paths: string[]): Promise<string[]>;
336
+ /**
337
+ * Resolve absolute file paths in the provided directory with respect to `.nuxtignore` and return them sorted.
338
+ * @param path path to the directory to resolve files in
339
+ * @param pattern glob pattern or an array of glob patterns to match files
340
+ * @param opts options for globbing
341
+ */
335
342
  declare function resolveFiles(path: string, pattern: string | string[], opts?: {
336
343
  followSymbolicLinks?: boolean;
344
+ ignore?: GlobOptions['ignore'];
337
345
  }): Promise<string[]>;
338
346
 
339
347
  /**
package/dist/index.mjs CHANGED
@@ -478,7 +478,7 @@ function existsInVFS(path, nuxt = tryUseNuxt()) {
478
478
  }
479
479
  async function resolveFiles(path, pattern, opts = {}) {
480
480
  const files = [];
481
- for (const p of await glob(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true, absolute: true })) {
481
+ for (const p of await glob(pattern, { cwd: path, followSymbolicLinks: opts.followSymbolicLinks ?? true, absolute: true, ignore: opts.ignore })) {
482
482
  if (!isIgnored(p)) {
483
483
  files.push(p);
484
484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit-nightly",
3
- "version": "4.0.4-29249079.262c00bb",
3
+ "version": "4.1.0-29249128.f25ce1df",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -46,13 +46,13 @@
46
46
  "untyped": "^2.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.0.4-29249079.262c00bb",
49
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.1.0-29249128.f25ce1df",
50
50
  "@rspack/core": "1.4.11",
51
51
  "@types/semver": "7.7.0",
52
52
  "hookable": "5.5.3",
53
53
  "nitropack": "2.12.4",
54
54
  "unbuild": "3.6.0",
55
- "vite": "7.0.6",
55
+ "vite": "7.1.1",
56
56
  "vitest": "3.2.4",
57
57
  "webpack": "5.101.0"
58
58
  },