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

0.1.0 • Public • Published

etsc

The Speedy & TSC-Compatible TypeScript Compiler, Powered by SWC.

npm version

Motivation

tsc is often slow, I want a command-line tool that can basically replace tsc, but retain the API of tsc.

Quick Start

npm i -g etsc
etsc            # Compiles the current project (tsconfig.json in the working directory.)

Compiler Options

etsc supports subset of tsconfig.json.

module

  • commonjs
  • es2015

Note: CommonJS or commonjs will output cjs, other config values will output esm.

target

  • es3
  • es5
  • es2015
  • es2016
  • es2017
  • es2018
  • es2019
  • es2020
  • es2021
  • es2022

Note: estc use swc to pre-compile the source code.

importHelpers

sourceMap

outDir

Output directory.

Author

MIT © ULIVZ

Package Sidebar

Install

npm i stsc

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

11.1 kB

Total Files

13

Last publish

Collaborators

  • ulivz