# tsc-compiler

> A compiler for typescript!

Latest version **1.1.77** (published 2023-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install tsc-compiler
pnpm add tsc-compiler
yarn add tsc-compiler
bun add tsc-compiler
```

Provides the command `tsc-compiler`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.77 |
| Published | 2023-05-04 |
| First published | 2023-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DanielJge |
| Maintainers | danieljge |
| Keywords | typescript, compiler |

## Links

- npm: https://www.npmjs.com/package/tsc-compiler
- Repository: https://github.com/HeVyBlack/tsc-compiler
- Homepage: https://github.com/HeVyBlack/tsc-compiler#readme
- Issues: https://github.com/HeVyBlack/tsc-compiler/issues
- npm.io page: https://npm.io/package/tsc-compiler

## Dependencies (5)

- [winston](https://npm.io/package/winston.md) 3.8.2
- [chokidar](https://npm.io/package/chokidar.md) 3.5.3
- [@swc/core](https://npm.io/package/@swc/core.md) 1.3.56
- [typescript](https://npm.io/package/typescript.md) 5.0.4
- [is-valid-path](https://npm.io/package/is-valid-path.md) 0.1.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.77 (latest) — 2023-05-04
- 1.1.76 — 2023-03-30
- 1.1.75 — 2023-03-29
- 1.1.71 — 2023-03-29
- 1.1.7 — 2023-03-29
- 1.1.6 — 2023-03-28
- 1.1.5 — 2023-03-28
- 1.1.0 — 2023-03-28
- 1.0.111 — 2023-03-27
- 1.0.11 — 2023-03-27
- 1.0.10 — 2023-03-26
- 1.0.9 — 2023-03-26
- 1.0.8 — 2023-03-25
- 1.0.7 — 2023-03-24
- 1.0.6 — 2023-03-24
- … 6 more at https://npm.io/package/tsc-compiler/versions

## README

# 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:**

|flag| What it do |
|--------------|--|
| --copy-files | Copy no .ts files |
| --watch | Watch for changes |
| --run [file to run] | Run .js files |
| --clean-on-exit | Remove out folder on exit |
| --no-empy-files | Avoid empty .ts files |
| --type-check | Typescript check files before compilation |
| --no-tsconfig | Dont 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**

---
_Source: https://npm.io/package/tsc-compiler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
