Skip to content

Instantly share code, notes, and snippets.

View trassmann's full-sized avatar
🏠
Working from home

Tormen Raßmann trassmann

🏠
Working from home
View GitHub Profile
@felskov
felskov / type-check.mjs
Last active March 4, 2024 05:56
simple script to run TypeScript in --incremental --noEmit mode, while ignoring errors in any files outside the project folder (useful in mono repos with different and incompatible tsconfig.json's per package)
#!/usr/bin/env node
import path from "path";
import ts from "typescript";
//
// parse tsconfig.json
//
const configFilePath = ts.findConfigFile(