Files
SnowLuma/.pnpm-store/v11/files/23/e3d25795266f93ffbab32a2dec53bd2dd06650c6efc1d75124b74d5cfd19162ba17a47f389be92c2ce3607a9402396022478298089267ccda061b0d6909593
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

45 lines
1.1 KiB
Plaintext

**💛 You can help the author become a full-time open-source maintainer by [sponsoring him on GitHub](https://github.com/sponsors/egoist).**
---
# load-tsconfig
[![npm version](https://badgen.net/npm/v/load-tsconfig)](https://npm.im/load-tsconfig) [![npm downloads](https://badgen.net/npm/dm/load-tsconfig)](https://npm.im/load-tsconfig)
> Load `tsconfig.json`, light-weight and dependency-free.
## Install
```bash
npm i load-tsconfig
```
## Usage
```ts
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:
```ts
loadTsConfig(".", "tsconfig.build.json")
```
Full type documentation: https://paka.dev/npm/load-tsconfig
## Sponsors
[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)
## License
MIT © [EGOIST](https://github.com/sponsors/egoist)