ts-interface-builder icon indicating copy to clipboard operation
ts-interface-builder copied to clipboard

feat: support watch mode

Open dwjohnston opened this issue 5 years ago • 1 comments

I would like to be able to run this with something like:

ts-interface-builder -o src/ti src/types/*.ts --watch

And have it continually recreate the -ti files, rather than have to run it manually.

dwjohnston avatar Oct 24 '19 02:10 dwjohnston

You can do it fairly easily using the chokidar module:

chokidar src/types/*.ts -c 'ts-interface-builder -o src/ti {path}'

dsagal avatar Oct 24 '19 05:10 dsagal