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

How to tell ts-node-dev to ignore and not transpile js files? #313

Open
jsoneaday opened this issue May 27, 2022 · 0 comments
Open

How to tell ts-node-dev to ignore and not transpile js files? #313

jsoneaday opened this issue May 27, 2022 · 0 comments

Comments

@jsoneaday
Copy link

Issue description

Hello, I have a turborepo with a nodejs project as one of the apps. This project includes a path to a shared package which is imported into the nodejs project. When I simply build and run with node it works but when I try and execute with ts-node-dev it gives a compilation error on a js file in the shared package. It seems to be trying to transpile js files for some reason. How can I force ts-node-dev to ignore js files?

This is the error. As you can see it attempts to go into the dist folder for some reason. I also tried updating tsconfig to exlude any dist or build folders but that did nothing.
Compilation error in /Users/davidchoi/Work/jsoneaday/jsoneaday-repo/packages/common/dist/index.js

Context

OS version (is it docker or host?), ts-node-dev version
Mac 12.4
Did you try to run with ts-node?
No
Did you try to run with --files option enabled?
No
Did you try to run with --debug option enabled?
Yes, but it did not give any more helpful info
Do you have a repro example (git repo) with simple steps to reproduce your problem?
I do not but I'm pretty sure the issue is that js is attempting to be transpiled. Is there no escape for js files?

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

1 participant