An open API service indexing awesome lists of open source software.

https://github.com/marcbouchenoire/tsatsiki

๐Ÿฅ’ Run tsc with both a configuration and specific files.
https://github.com/marcbouchenoire/tsatsiki

cli files staged typescript

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Tsatsiki

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

[![build](https://img.shields.io/github/actions/workflow/status/marcbouchenoire/tsatsiki/.github/workflows/ci.yml?color=%236c2)](https://github.com/marcbouchenoire/tsatsiki/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/tsatsiki?color=%236c2)](https://www.npmjs.com/package/tsatsiki)
[![coverage](https://img.shields.io/codecov/c/github/marcbouchenoire/tsatsiki?color=%236c2)](https://codecov.io/gh/marcbouchenoire/tsatsiki)
[![license](https://img.shields.io/github/license/marcbouchenoire/tsatsiki?color=%236c2)](https://github.com/marcbouchenoire/tsatsiki/blob/main/LICENSE)

- ๐Ÿ“š **Simple**: A drop-in `tsc` replacement
- ๐Ÿงช **Reliable**: Fully tested with [100% code coverage](https://codecov.io/gh/marcbouchenoire/tsatsiki)
- ๐Ÿ“ฆ **Typed**: Written in [TypeScript](https://www.typescriptlang.org/)

## Introduction

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

```bash
tsc --project tsconfig.json index.ts

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

## Installation

```bash
npm install --save-dev tsatsiki
```

## Usage

Use it as a drop-in `tsc` replacement.

```bash
tsatsiki --project tsconfig.json index.ts
```

#### Staged files

Use it with [`lint-staged`](https://github.com/okonet/lint-staged) or [`nano-staged`](https://github.com/usmanyunusov/nano-staged) to only type check staged files.

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