Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

read-tsconfig-up

1.0.1 • Public • Published

read-tsconfig-up

Travis CI node npm PRs


Install

$ npm install read-tsconfig-up

Usage

const readTsconfigUp = require('read-tsconfig-up');
 
readTsconfigUp().then(result => {
    console.log(result);
    /*
    {
        tsconfig: {
            compilerOptions: {
                outDir: 'dist',
                // ...
            }
        },
        path: '/path/to/project/tsconfig.json'
    }
    */
});
 
console.log(readTsconfigUp.sync({cwd: './packages/foo'}));

API

readTsconfigUp(options)

readTsconfig.sync(options)

ReadOptions

  • cwd: <string> - Directory to start from.
    • default: process.cwd()

Related

License

MIT © Guntur Poetra

Install

npm i read-tsconfig-up

DownloadsWeekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

5.22 kB

Total Files

5

Last publish

Collaborators

  • avatar