ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

`ts-node-emit`

Open cspotcode opened this issue 4 years ago • 2 comments
trafficstars

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.

cspotcode avatar Dec 14 '20 15:12 cspotcode

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

JanJakes avatar Jul 09 '21 06:07 JanJakes

See also: https://www.npmjs.com/package/tsc-to

On Fri, Jul 9, 2021, 2:25 AM Jan Jakeš @.***> wrote:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TypeStrong/ts-node/issues/1175#issuecomment-876947445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC35OHT7NGOWECCEMMXGQLTW2I47ANCNFSM4U24GBDQ .

cspotcode avatar Jul 09 '21 16:07 cspotcode