Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 42ce1aa

Browse files
committed
fix(commands): Add --verbose attribute if set on main
1 parent ef62a68 commit 42ce1aa

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/bin/app.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ export class App {
8989
.map((item: string) => item.trim())
9090
.map((item: string) => binPath + ' ' + item);
9191
commands.forEach(async (command: string) => {
92+
if (runner.debug) {
93+
command += ' --verbose';
94+
}
9295
await Promise.resolve(runner.log('commands').info('Run: ' + command));
9396
await runner.commandRunner(command);
9497
await Promise.resolve(runner.log('commands').info('Done!'));

src/lib/base.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ export class Base {
6565
);
6666
if (child.status === 0 || child.status === '0') {
6767
this.log('commandRunner').debug('status', child.status);
68-
if (child.stderr.toString()) {
69-
this.log('commandRunner').error('stderr', child.stderr.toString());
70-
}
68+
this.log('commandRunner').debug('stderr', child.stderr.toString());
7169
this.log('commandRunner').debug('stdout', child.stdout.toString());
7270
this.log('commandRunner').debug('end');
7371
} else {

src/lib/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ export class Project extends Base {
3939
getLibPathByName(name: string) {
4040
const libs = this.libsConfigs.filter((item: any) => item.name && item.name === name);
4141
if (libs.length > 0) {
42-
return libs[0].root;
42+
return libs[0].rootPath;
4343
}
4444
return name;
4545
}
4646
getAppPathByName(name: string) {
4747
const apps = this.appsConfigs.filter((item: any) => item.name && item.name === name);
4848
if (apps.length > 0) {
49-
return apps[0].root;
49+
return apps[0].rootPath;
5050
}
5151
return name;
5252
}

0 commit comments

Comments
 (0)