MCPcopy Index your code
hub / github.com/TypeStrong/tsconfig

github.com/TypeStrong/tsconfig @v7.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v7.0.0 ↗ · + Follow
15 symbols 40 edges 2 files 4 documented · 27% 331 cross-repo links updated 2y agov7.0.0 · 2017-08-28★ 1093 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

TSConfig

NPM version NPM downloads Build status Test coverage

Resolve and parse tsconfig.json, replicating TypeScript's behaviour.

Usage

See the TypeScript docs for information on setting up tsconfig.json.

API

  • resolve(cwd: string, path?: string): Promise Resolve tsconfig.json, like TypeScript, allowing a path to be specified and falling back to recursively resolving tsconfig.json upward when no path is specified.
  • resolveSync(cwd: string, path?: string): string | void Synchronous resolve.
  • find(cwd: string): Promise Standalone behaviour of recursively resolving tsconfig.json upward.
  • findSync(cwd: string): string | void Synchronous find.
  • load(cwd: string, path?: string): Promise<{ path?: string, config: any }> Resolve, load and parse tsconfig.json.
  • loadSync(cwd: string, path?: string): { path?: string, config: any } Synchronous load.
  • readFile(filename: string): Promise Read a JSON file as tsconfig.json (strip BOM, parse JSON and support empty contents).
  • readFileSync(filename: string): any Synchronous readFile.
  • parse(contents: string, filename: string): any Parse file contents as tsconfig.json (strip BOM, parse JSON and support empty contents).

Contributing

Feel free to open issues for discussion.

# Install dependencies/typings.
npm install

# Run test suite.
npm test

License

MIT License

Extension points exported contracts — how you extend this code

Test (Interface)
(no doc)
src/tsconfig.spec.ts
LoadResult (Interface)
(no doc)
src/tsconfig.ts

Core symbols most depended-on inside this repo

isFile
called by 6
src/tsconfig.ts
resolve
called by 4
src/tsconfig.ts
stat
called by 3
src/tsconfig.ts
statSync
called by 3
src/tsconfig.ts
parse
called by 2
src/tsconfig.ts
isDirectory
called by 2
src/tsconfig.ts
resolveSync
called by 1
src/tsconfig.ts
find
called by 1
src/tsconfig.ts

Shape

Function 13
Interface 2

Languages

TypeScript100%

Modules by API surface

src/tsconfig.ts14 symbols
src/tsconfig.spec.ts1 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page