@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
10 lines (9 loc) • 312 B
JavaScript
import * as fs from 'fs';
import { join } from 'path';
const TSCONFIG_BUILD_JSON = 'tsconfig.build.json';
const TSCONFIG_JSON = 'tsconfig.json';
export function getDefaultTsconfigPath() {
return fs.existsSync(join(process.cwd(), TSCONFIG_BUILD_JSON))
? TSCONFIG_BUILD_JSON
: TSCONFIG_JSON;
}