Repository navigation
Include node_module module #1544
Answered
by
cspotcode
peteringram0
asked this question in
Q&A
|
By default ts-node skips everything inside node_modules as per (https://github.com/TypeStrong/ts-node#skipping-node_modules). Is there a flag or a way to include a specific module to be included? |
Answered by
cspotcode
Nov 11, 2021
Replies: 1 comment 1 reply
|
You can try fiddling with the Docs links: Setting the |
1 reply
Answer selected by
peteringram0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try fiddling with the
ignoreoption. UX here isn't great -- it's interpreted as a regular expression. Probably best to declare it in your tsconfig.json file.Docs links:
https://typestrong.org/ts-node/docs/options#transpilation
https://typestrong.org/ts-node/docs/configuration#via-tsconfigjson-recommended
Setting the
TS_NODE_DEBUGenvironment variable totruemight give you some useful logging about what is and is not being ignored, but I haven't looked at the debug logging in a while so I don't remember for certain.