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

Instructions to use with watch #8

Open
piotr-cz opened this issue Jan 5, 2024 · 1 comment
Open

Instructions to use with watch #8

piotr-cz opened this issue Jan 5, 2024 · 1 comment

Comments

@piotr-cz
Copy link
Contributor

piotr-cz commented Jan 5, 2024

What are the recommendations to use tsimp in watch mode?

At this moment I'm using tsc-watch, which as an --compiler flag.

I've tried this:

tsc-watch --onSuccess "node ./dist/server.js" --compiler ./node_modules/tsimp/dist/esm/bin.mjs

however scripts exits with message --watch requires specifying a file

@TimonVS
Copy link

TimonVS commented Jan 15, 2024

Node.js v18 and up has a built-in watch mode: https://nodejs.org/docs/latest-v18.x/api/cli.html#--watch. Have you tried this?

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