Skip to content

Instantly share code, notes, and snippets.

View bitcrumb's full-sized avatar
🚸
Cross-platform mobile development

Lode Vanhove bitcrumb

🚸
Cross-platform mobile development
View GitHub Profile
@bitcrumb
bitcrumb / tsc-compile-file.sh
Created December 26, 2022 16:59
Create temp .tsconfig
#!/usr/bin/env bash
set -e
TMP_TSCONFIG="$(dirname "$0")/../tsconfig.tmp.json"
# -----------------------------------------------------------------------------------------
# Clever solution which creates an intermediate tsconfig to validate
# on a per file basis (for tools like lint-staged which pass the current staged file to $@)
#
# Arguments: