Skip to content

Commit 35e0531

Browse files
committed
refactor: use watchInputDir instead of chokidar
1 parent 6103c6a commit 35e0531

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
],
3232
"dependencies": {
3333
"aspida": "^1.14.0",
34-
"chokidar": "^3.6.0",
3534
"openapi-types": "^12.1.3",
3635
"typescript-json-schema": "^0.64.0"
3736
},

src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { getConfigs } from 'aspida/dist/cjs/getConfigs';
2+
import watchInputDir from 'aspida/dist/cjs/watchInputDir';
23
import minimist from 'minimist';
34
import build from '.';
45
import type { ConfigFile, PartialConfig } from './getConfig';
5-
import { watchIndexFiles } from './watchIndexFiles';
66

77
export const run = (args: string[]) => {
88
const argv: Record<string, string | undefined> = minimist(args, {
@@ -21,7 +21,7 @@ export const run = (args: string[]) => {
2121
build(configs);
2222

2323
if (argv.watch !== undefined) {
24-
configs.forEach((config) => watchIndexFiles(config.input, () => build(config)));
24+
configs.forEach((config) => watchInputDir(config.input, () => build(config)));
2525
}
2626

2727
return;
@@ -38,5 +38,5 @@ export const run = (args: string[]) => {
3838

3939
build(option);
4040

41-
if (argv.watch !== undefined) watchIndexFiles(config.input, () => build(option));
41+
if (argv.watch !== undefined) watchInputDir(config.input, () => build(option));
4242
};

src/watchIndexFiles.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)