1.1.77 • Published 2 years ago

tsc-compiler v1.1.77

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tsc-compiler

A typescript compiler, that use SWC.

  • To install: npm i -g tsc-compiler or npm i -D tsc-compiler

  • To use: tsc-compiler [source] [output] [flags] or npx tsc-compiler [source] [output] [flags]

Flags:

flagWhat it do
--copy-filesCopy no .ts files
--watchWatch for changes
--run file to runRun .js files
--clean-on-exitRemove out folder on exit
--no-empy-filesAvoid empty .ts files
--type-checkTypescript check files before compilation
--no-tsconfigDont save a basic tsconfig

A reason why you wanna use this, is: When you are using allowImportTsExtensions in your tsconfig.json. This compiler take the .ts files, compile it, and change the .ts to .js in the imports statements.

Please read!

Tsc-compiler will search the tsconfig.json, if don't found it, will use the next config:

  • target : ES2022

  • module : NodeNext

  • moduleResolution : NodeNext

  • allowImportingTsExtensions : true

  • noEmit : true

  • stric : true

  • experimentalDecorators : true

  • emitDecoratorMetadata : true

And, will save a tsconfig.json with that config, if you don't want to save it, use the --no-tsconfig flag

Tsc-compiler will search the .swcrc, if don't found it, will use the next config:

  • syntax : typescript

  • tsx : false

  • decorators : true

  • target : es2022

  • decoratorMetadata: true

1.1.77

2 years ago

1.1.76

2 years ago

1.1.75

2 years ago

1.1.71

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.0

2 years ago

1.0.111

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago