1.1.77 • Published 1 year ago

tsc-compiler v1.1.77

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.1.76

1 year ago

1.1.75

1 year ago

1.1.71

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.0

1 year ago

1.0.111

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago