npmci/ts/npmci.classes.npmciinfo.ts

18 lines
509 B
TypeScript
Raw Normal View History

import * as plugins from './npmci.plugins.js';
import * as paths from './npmci.paths.js';
import { logger } from './npmci.logging.js';
import { Npmci } from './npmci.classes.npmci.js';
2019-08-29 18:26:23 +00:00
export class NpmciInfo {
public npmciRef: Npmci;
public projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.NpmciPackageRoot);
constructor(npmciArg: Npmci) {
this.npmciRef = npmciArg;
}
2023-08-24 15:25:55 +00:00
public async printToConsole() {
await logger.log('info', `npmci version: ${this.projectInfo.version}`);
2019-08-29 18:26:23 +00:00
}
2019-08-29 18:38:44 +00:00
}