load-tsconfig
Load tsconfig.json
Last updated 4 years ago by egoist .
MIT · Original npm · Tarball · package.json
$ npm install load-tsconfig 
SYNC missed versions from official npm registry.

💛 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

Current Tags

  • 0.2.5                                ...           latest (4 years ago)

8 Versions

  • 0.2.5                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
Maintainers (1)
Downloads
Total 28
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 3
Last Month 19
Dependencies (0)
None
Dev Dependencies (8)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE