@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
30 lines (29 loc) • 1.16 kB
TypeScript
import { Configuration } from '../../configuration/index.js';
import { AssetsManager } from '../assets-manager.js';
import { BaseCompiler } from '../base-compiler.js';
import type { TsConfigProviderOutput } from '../helpers/tsconfig-provider.js';
import { PluginsLoader } from '../plugins/plugins-loader.js';
export type SwcCompilerExtras = {
watch: boolean;
typeCheck: boolean;
emitDeclarations: boolean;
assetsManager: AssetsManager;
tsOptions: TsConfigProviderOutput['options'];
tsConfigExclude: string[];
silent?: boolean;
};
export declare class SwcCompiler extends BaseCompiler {
constructor(pluginsLoader: PluginsLoader);
run(configuration: Required<Configuration>, tsConfigPath: string, appName: string | undefined, extras: SwcCompilerExtras, onSuccess?: () => void): Promise<void>;
private emitDeclarations;
private runSwc;
private shouldLogSwcStatus;
private loadSwcCliBinary;
private getSwcRcFileContentIfExists;
private deepMerge;
private debounce;
private watchFilesInSrcDir;
private isIgnoredBySwc;
private normalizeSwcIgnorePath;
private watchFilesInOutDir;
}