tsconfig-loader

Load tsconfig, respecting `TS_NODE_PROJECT` env var and `extends`

Usage no npm install needed!

<script type="module">
  import tsconfigLoader from 'https://cdn.skypack.dev/tsconfig-loader';
</script>

README

tsconfig-loader

Load tsconfig, respecting TS_NODE_PROJECT env var and "extends"

Installation

yarn add tsconfig-loader

Usage

import load from 'tsconfig-loader';

const result = load();
// => {tsConfigPath: 'path/to/tsconfig.json', tsConfig: {compilerOptions: {...}}}