UNPKG

@nestjs/cli

Version:

The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.

5 lines (4 loc) • 134 B
import { extname } from 'path'; export function appendTsExtension(path) { return extname(path) === '.ts' ? path : path + '.ts'; }