Skip to content

Commit bb76ec3

Browse files
committed
wip
1 parent 1cedaa2 commit bb76ec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/codegen/src/runner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { Stats } from 'node:fs';
12
import { rm } from 'node:fs/promises';
23
import chokidar, { type FSWatcher } from 'chokidar';
34
import type { Logger } from './logger/logger.js';
@@ -57,7 +58,7 @@ export async function runCMKInWatchMode(args: RunnerArgs, logger: Logger): Promi
5758
fsWatchers.push(
5859
chokidar
5960
.watch(wildcardDirectory.fileName, {
60-
ignored: (fileName, stats) => {
61+
ignored: (fileName: string, stats?: Stats) => {
6162
// The ignored function is called twice for the same path. The first time with stats undefined,
6263
// and the second time with stats provided.
6364
// In the first call, we can't determine if the path is a directory or file.

0 commit comments

Comments
 (0)