chaosdc/node_modules/load-tsconfig
root 934816dd37 first commit 2026-03-09 23:30:47 +01:00
..
dist first commit 2026-03-09 23:30:47 +01:00
LICENSE first commit 2026-03-09 23:30:47 +01:00
README.md first commit 2026-03-09 23:30:47 +01:00
package.json first commit 2026-03-09 23:30:47 +01:00

README.md

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


load-tsconfig

npm version npm downloads

Load tsconfig.json, light-weight and dependency-free.

Install

npm i load-tsconfig

Usage

import { loadTsConfig } from "load-tsconfig"

const loaded = loadTsConfig(".")

// loaded is null when no tsconfig is found, or:
// loaded.path -> the path to the tsconfig file
// loaded.data -> the merged tsconfig
// loaded.files -> all discovered tsconfig files (via "extends")

By default it loads ./tsconfig.json, but you can use a custom filename:

loadTsConfig(".", "tsconfig.build.json")

Full type documentation: https://paka.dev/npm/load-tsconfig

Sponsors

sponsors

License

MIT © EGOIST