JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2401736
  • Score
    100M100P100Q185353F
  • License MIT

TypeScript project file specification + implementation

Package Exports

  • tsconfig
  • tsconfig/dist/tsconfig

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tsconfig) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

TSConfig

NPM version NPM downloads Build status Test coverage

Resolve and parse tsconfig.json, with support for filesGlob (array of glob strings).

Usage

See the TypeScript wiki for information on setting up tsconfig.json. Additionally, this module will parse the filesGlob option, if it exists.

API

  • resolve(dir: string, cb: (err: Error, filename?: string) => any) Aschronously resolve the location of tsconfig.json
  • resolveSync(dir: string): string Synchronous version of resolve
  • load(dir: string, cb: (err: Error, config?: TSConfig) => any) Resolve, load and parse tsconfig.json from a directory
  • loadSync(dir: string): TSConfig Synchronous version of load
  • readFile(filename: string, cb: (err: Error, config?: TSConfig) => any) Read any file as tsconfig.json
  • readFileSync(filename: string): TSConfig Synchronous version of readFile
  • parseFile(contents: string, filename: string, cb: (err: Error, config?: TSConfig) => any) Parse any string using TSConfig
  • parseFileSync(contents: string, filename: string): TSConfig Synchronous version of parseFile
  • resolveConfig(data: TSConfig, filename: string, cb: (err: Error, config?: TSConfig) => any) Resolve a tsconfig.json object against a filename (E.g. filesGlob)
  • resolveConfigSync(data: TSConfig, filename: string): TSConfig Synchronous version of resolveConfig

Contributing

Please open issues for discussion.

License

MIT License