From d11fb80e55ee020b463de3a64a75e5936f6097e1 Mon Sep 17 00:00:00 2001 From: Marnix Dessing Date: Tue, 19 Apr 2022 19:10:33 +0200 Subject: [PATCH] feat: suppress cdk template using -q instead of /dev/null (#1780) (#1781) Fixes #1780 --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --- src/awscdk/cdk-tasks.ts | 2 +- test/awscdk/awscdk-app.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/awscdk/cdk-tasks.ts b/src/awscdk/cdk-tasks.ts index 00a46cd77ff..1252a625077 100644 --- a/src/awscdk/cdk-tasks.ts +++ b/src/awscdk/cdk-tasks.ts @@ -47,7 +47,7 @@ export class CdkTasks extends Component { this.synthSilent = project.addTask("synth:silent", { description: 'Synthesizes your cdk app into cdk.out and suppresses the template in stdout (part of "yarn build")', - exec: "cdk synth > /dev/null", // redirect to /dev/null to hide template + exec: "cdk synth -q", }); this.deploy = project.addTask("deploy", { diff --git a/test/awscdk/awscdk-app.test.ts b/test/awscdk/awscdk-app.test.ts index a840b6fddbf..2f29e2da7dd 100644 --- a/test/awscdk/awscdk-app.test.ts +++ b/test/awscdk/awscdk-app.test.ts @@ -118,7 +118,7 @@ describe("synth", () => { name: "synth:silent", description: 'Synthesizes your cdk app into cdk.out and suppresses the template in stdout (part of "yarn build")', - steps: [{ exec: "cdk synth > /dev/null" }], + steps: [{ exec: "cdk synth -q" }], }); });