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.
- Host: GitHub
- URL: https://github.com/marcbouchenoire/tsatsiki
- Owner: marcbouchenoire
- License: mit
- Created: 2021-08-03T11:26:29.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T13:29:56.000Z (over 1 year ago)
- Last Synced: 2025-07-25T10:07:33.726Z (12 months ago)
- Topics: cli, files, staged, typescript
- Language: TypeScript
- Homepage: https://npm.im/tsatsiki
- Size: 551 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 
๐ฅ Run `tsc` with both a configuration and specific files.
[](https://github.com/marcbouchenoire/tsatsiki/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/tsatsiki)
[](https://codecov.io/gh/marcbouchenoire/tsatsiki)
[](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"]
}
```