tsconfig-files
A small library to find source files from a tsconfig.json file.
Last updated a year ago by eth-p .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tsconfig-files 
SYNC missed versions from official npm registry.

tsconfig-files

npm version

A small library to find source files from a tsconfig.json file.

Install

$ npm install tsconfig-files

Usage

example.js:

// import {getFilesFromTsconfig} from "tsconfig-files";
const getFilesFromTsconfig = require("tsconfig-files").getFilesFromTsconfig;

getFilesFromTsconfig('.').then((files) => {
	console.log(files);
}, (error) => {
	console.error(error);
});

API

getFilesFromTsconfig(cwd): Promise<string[]>

Returns a Promise containing the files matched by tsconfig.json in cwd.

getFilesFromTsconfigSync(cwd): string[]>

Returns the files matched by tsconfig.json in cwd. The async form is preferred over this function.

getFilesFromTsconfigJson(json, root): Promise<string[]>

Returns a Promise containing the files matched by the provided tsconfig json.

getFilesFromTsconfigSync(json, root): string[]>

Returns the files matched by the provided tsconfig json. The async form is preferred over this function.

License

MIT © eth-p

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |