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
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 oftsconfig.json
resolveSync(dir: string): string
Synchronous version ofresolve
load(dir: string, cb: (err: Error, config?: TSConfig) => any)
Resolve, load and parsetsconfig.json
from a directoryloadSync(dir: string): TSConfig
Synchronous version ofload
readFile(filename: string, cb: (err: Error, config?: TSConfig) => any)
Read any file astsconfig.json
readFileSync(filename: string): TSConfig
Synchronous version ofreadFile
parseFile(contents: string, filename: string, cb: (err: Error, config?: TSConfig) => any)
Parse any string using TSConfigparseFileSync(contents: string, filename: string): TSConfig
Synchronous version ofparseFile
resolveConfig(data: TSConfig, filename: string, cb: (err: Error, config?: TSConfig) => any)
Resolve atsconfig.json
object against a filename (E.g.filesGlob
)resolveConfigSync(data: TSConfig, filename: string): TSConfig
Synchronous version ofresolveConfig
Contributing
Please open issues for discussion.
License
MIT License