Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support watch mode #18

Open
dwjohnston opened this issue Oct 24, 2019 · 1 comment
Open

feat: support watch mode #18

dwjohnston opened this issue Oct 24, 2019 · 1 comment

Comments

@dwjohnston
Copy link

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.

@dsagal
Copy link
Member

dsagal commented Oct 24, 2019

You can do it fairly easily using the chokidar module:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants