UNPKG

@kv-systems/ng-packagr

Version:

Compile and package Angular libraries in Angular Package Format (APF)

16 lines (14 loc) 493 B
import { version as TS_VERSION } from 'typescript'; import { ngCompilerCli } from '../utils/load-esm'; import { msg } from '../utils/log'; import { Command } from './command'; /** * Prints version information. * * @stable */ export const version: Command<any, Promise<void>> = async () => { msg(`ng-packagr: ` + require('../../package.json').version); msg(`@angular/compiler: ` + (await ngCompilerCli()).VERSION.full); msg(`typescript: ` + TS_VERSION); };