ts-fast
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc.2 • Public • Published

ts-fast 🙈

I created this tiny CLI util to work around the lack of --no-check or --only-emit flags in official typescript tsc CLI.

This might be very useful when :

  • you want to seperate type-check (expensive and long) and transpile-only tasks (fast) in different threads.
  • you do not want to repeat type-checking on code that already passed it on previous build stage.

Usage

# No config given, will recusrively find the nearest tsconfig.json
ts-fast

# Or you can spacify the name of the config (same syntax than tsc)
ts-fast -p ./config/ts-config.prod.json

It does not support other flags of tsc command like --esModuleInterop, we don't want to maintain an interface with a huge ammount of options. Anyway, all these configs can be all declared in tsconfig.json

Debug

Export the following environment variable to enable verbose logging DEBUG=ts-fast.

Caveats

  • not sure it works on Windows
  • not sure it works for "exotic" tsconfigs

Package Sidebar

Install

npm i ts-fast

Weekly Downloads

1

Version

1.0.0-rc.2

License

MIT

Unpacked Size

15.3 kB

Total Files

27

Last publish

Collaborators

  • marioarnautou