diff --git a/ts/manager.npm/index.ts b/ts/manager.npm/index.ts index de666c3..da818ed 100644 --- a/ts/manager.npm/index.ts +++ b/ts/manager.npm/index.ts @@ -133,8 +133,8 @@ export class NpmciNpmManager { await bash(`npm -v`); // -> build it - await bash(`npm install`); - await bash(`npm run build`); + await this.install(); + await this.build(); logger.log('success', `Nice!!! The build for the publication was successfull!`); logger.log('info', `Lets clean up so we don't publish any packages that don't belong to us:`); @@ -155,6 +155,11 @@ export class NpmciNpmManager { await bash('npm ci'); } + public async build(): Promise { + logger.log('info', 'now building the project:'); + await bash('npm run build'); + } + public async test(): Promise { logger.log('info', 'now starting tests:'); await bash('npm test');