MCPcopy Index your code
hub / github.com/egoist/load-tsconfig

github.com/egoist/load-tsconfig @v0.2.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.5 ↗ · + Follow
7 symbols 21 edges 6 files 0 documented · 0% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

💛 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

Core symbols most depended-on inside this repo

loadTsConfig
called by 5
src/index.ts
findUp
called by 2
src/index.ts
resolveTsConfigFromFile
called by 1
src/index.ts
resolveTsConfigFromExtends
called by 1
src/index.ts
loadTsConfigInternal
called by 1
src/index.ts
jsoncParse
called by 1
src/utils.ts

Shape

Function 7

Languages

TypeScript100%

Modules by API surface

src/index.ts5 symbols
test/index.test.ts1 symbols
src/utils.ts1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add load-tsconfig \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page