Tscx
Run and build TypeScript projects!
Install:
npm i -g @danieljge/tscx
npm i -D @danieljge/tscx
Usage:
tscx [file|flags] [other flags]
npx tscx [file|flags] [other flags]
Flags
flag | what it do |
---|---|
--init | Create a tsconfig.json |
--build | Build the project |
--watch | Watch for changes |
--noTypeCheck | Avoid type check |
Notes
- Tscx use SWC.
- You can make a .swcrc that SWC will use
- For watch, tscx use --watch node's flag
- When you are using build flag, this, will read tsconfig.json for rootDir and outDir