Indicates whether the project has
tsconfig.json
file.
$ npm install --save has-tsconfig
./dev
├── bar
│ └── package.json
└── foo
├── package.json
└── tsconfig.json
const hasTsconfig = require('has-tsconfig');
hasTsconfig('./dev/foo');
//=> true
hasTsconfig('./dev/bar');
//=> false
Returns a boolean value from the given paths
.
Type: string
Default: process.cwd()
MIT © Guntur Poetra