UNPKG

@nestjs/cli

Version:

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

14 lines (13 loc) • 732 B
import * as ts from 'typescript'; /** * Returns `true` when the consuming project uses an ESM-style module * resolution strategy (`node16` / `nodenext`). Under those resolution * modes, dynamic `import()` specifiers MUST include the file extension * (typically `.js`) for the runtime resolver to find the module. Without * the extension, executing the generated metadata file fails with * `ERR_MODULE_NOT_FOUND`, and TypeScript reports a diagnostic. * * The resolution strategy is the one the compiler uses, so a tsconfig that * sets `module: nodenext` and omits `moduleResolution` counts as NodeNext. */ export declare function requiresExplicitImportExtensions(options: ts.CompilerOptions, tsBinary: typeof ts): boolean;