Skip to content

Commit

Permalink
chore: update chokidar
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jan 17, 2025
1 parent 281dc99 commit 654a1f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
6 changes: 2 additions & 4 deletions lib/compiler/swc/swc-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ export class SwcCompiler extends BaseCompiler {
extras: SwcCompilerExtras,
swcrcFilePath?: string,
) {
process.nextTick(() =>
console.log(SWC_LOG_PREFIX, cyan('Running...')),
);
process.nextTick(() => console.log(SWC_LOG_PREFIX, cyan('Running...')));

const swcCli = this.loadSwcCliBinary();
const swcRcFile = await this.getSwcRcFileContentIfExists(swcrcFilePath);
Expand Down Expand Up @@ -262,7 +260,7 @@ export class SwcCompiler extends BaseCompiler {
pollInterval: 10,
},
});
for (const type of ['add', 'change']) {
for (const type of ['add', 'change'] as const) {
watcher.on(type, async () => onChange());
}
}
Expand Down
42 changes: 17 additions & 25 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@inquirer/prompts": "5.3.8",
"@nestjs/schematics": "11.0.0",
"ansis": "3.4.0",
"chokidar": "4.0.1",
"chokidar": "4.0.3",
"cli-table3": "0.6.5",
"commander": "4.1.1",
"fork-ts-checker-webpack-plugin": "9.0.2",
Expand Down

0 comments on commit 654a1f8

Please sign in to comment.