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

ts-node-emit #1175

Open
cspotcode opened this issue Dec 14, 2020 · 2 comments
Open

ts-node-emit #1175

cspotcode opened this issue Dec 14, 2020 · 2 comments
Labels
research Needs design work, investigation, or prototyping. Implementation uncertain.

Comments

@cspotcode
Copy link
Collaborator

Desired Behavior

Ask ts-node not to run anything, but to emit everything matched by --files as compiled output.

Is this request related to a problem?

A way to efficiently pre-compile a project that's been setup to run in ts-node, perhaps using a custom compiler like ttypescript or ts-node/compilers/swc, perhaps using transformers.

Alternatives you've considered

ttypescript / ttsc for transformers
Using swc or esbuild CLI directly

Additional context

This idea's been kicking around my brain for a while, and I want to write it down. Feels like feature-creep, even though I like the idea.

Seems like something people might want. They set up "paths" mappings, set up transformers, test that it works with ts-node, and then they want to compile straight from there without configuring a separate build. Sometimes people reach for ts-node first and then want an easy way to compile after the fact.

I dunno, this idea seems flawed, but maybe I'll figure out how to clean it up enough to be feasible.

@JanJakes
Copy link

JanJakes commented Jul 9, 2021

I like this. Since there is no tsc --transpile-only, having this option we could use ts-node to achieve that.

@cspotcode
Copy link
Collaborator Author

cspotcode commented Jul 9, 2021 via email

@cspotcode cspotcode added the research Needs design work, investigation, or prototyping. Implementation uncertain. label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Needs design work, investigation, or prototyping. Implementation uncertain.
Projects
None yet
Development

No branches or pull requests

2 participants