Skip to content

Commit

Permalink
fix(commands): print warnings when using leon check
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Mar 19, 2022
1 parent 680b0ee commit 7ae8515
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/services/LeonInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,10 @@ export class LeonInstance implements LeonInstanceOptions {
}

public async check(): Promise<void> {
await this.runScript({
command: 'npm run ' + (this.mode === 'docker' ? 'docker:check' : 'check'),
verbose: true,
loader: {
message: 'Checking that the setup went well',
stderr: 'Could not check the setup'
},
workingDirectory: this.path
})
process.chdir(this.path)
const command =
'npm run ' + (this.mode === 'docker' ? 'docker:check' : 'check')
await execa.command(command, { stdio: 'inherit' })
}

public async buildDockerImage(): Promise<void> {
Expand Down

0 comments on commit 7ae8515

Please sign in to comment.