Skip to content

Commit

Permalink
refactor: update to chokidar v4 (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Feb 21, 2025
1 parent 24bc717 commit a7feefa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"@vercel/nft": "^0.29.2",
"archiver": "^7.0.1",
"c12": "^2.0.2",
"chokidar": "^3.6.0",
"chokidar": "^4.0.3",
"citty": "^0.1.6",
"compatx": "^0.1.8",
"confbox": "^0.1.8",
Expand Down Expand Up @@ -164,7 +164,7 @@
"unenv": "2.0.0-rc.6",
"unimport": "^4.1.2",
"unplugin-utils": "^0.2.4",
"unstorage": "^1.14.4",
"unstorage": "^1.15.0",
"untyped": "^1.5.2",
"unwasm": "^0.3.9",
"youch": "4.1.0-beta.4",
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/core/build/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Nitro, RollupConfig } from "nitropack/types";
import { join } from "pathe";
import { debounce } from "perfect-debounce";
import * as rollup from "rollup";
import { GLOB_SCAN_PATTERN, scanHandlers } from "../scan";
import { scanHandlers } from "../scan";
import { nitroServerName } from "../utils/nitro";
import { formatRollupError } from "./error";
import { writeTypes } from "./types";
Expand All @@ -25,7 +25,7 @@ export async function watchDev(nitro: Nitro, rollupConfig: RollupConfig) {
const watchPatterns = nitro.options.scanDirs.flatMap((dir) => [
join(dir, nitro.options.apiDir || "api"),
join(dir, nitro.options.routesDir || "routes"),
join(dir, "middleware", GLOB_SCAN_PATTERN),
join(dir, "middleware"),
join(dir, "plugins"),
join(dir, "modules"),
]);
Expand Down
4 changes: 2 additions & 2 deletions src/types/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { RollupCommonJSOptions } from "@rollup/plugin-commonjs";
import type { C12InputConfig, ConfigWatcher, ResolvedConfig } from "c12";
import type { WatchConfigOptions } from "c12";
import type { WatchOptions } from "chokidar";
import type { ChokidarOptions } from "chokidar";
import type { CompatibilityDateSpec, CompatibilityDates } from "compatx";
import type { LogLevel } from "consola";
import type { ConnectorName } from "db0";
Expand Down Expand Up @@ -166,7 +166,7 @@ export interface NitroOptions extends PresetOptions {
// Dev
dev: boolean;
devServer: DevServerOptions;
watchOptions: WatchOptions;
watchOptions: ChokidarOptions;
devProxy: Record<string, string | ProxyServerOptions>;

// Logging
Expand Down

0 comments on commit a7feefa

Please sign in to comment.