From bfe3e266ee42449cf9ada59d7d5a05387b74ee7d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 2 Oct 2019 11:56:05 +0200 Subject: [PATCH] fix(core): update --- ts/manager.npm/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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');