tsatsiki

Run tsc with both a configuration and specific files.

Usage no npm install needed!

<script type="module">
  import tsatsiki from 'https://cdn.skypack.dev/tsatsiki';
</script>

README

Tsatsiki

๐Ÿฅ’ Run tsc with both a configuration and specific files.

build npm coverage license

  • ๐Ÿ“š Simple: A drop-in tsc replacement
  • ๐Ÿงช Reliable: Fully tested with 100% code coverage
  • ๐Ÿ“ฆ Typed: Written in TypeScript

Introduction

Tsatsiki builds upon TypeScript's own tsc to circumvent its TS5042 error.

tsc --project tsconfig.json index.ts

# error TS5042: Option "project" cannot be mixed with source files on a command line.

Installation

Yarn

yarn add -D tsatsiki

npm

npm install --save-dev tsatsiki

Usage

Use it as a drop-in tsc replacement.

tsatsiki --project tsconfig.json index.ts

lint-staged

Use it with lint-staged to only type check staged files.

{
  "**/*.{ts,tsx}": ["tsatsiki --project tsconfig.json"]
}