Skip to content

Commit

Permalink
feat: suppress cdk template using -q instead of /dev/null (projen#1780)…
Browse files Browse the repository at this point in the history
… (projen#1781)

Fixes projen#1780 

---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
marnixdessing authored Apr 19, 2022
1 parent bff6362 commit d11fb80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/awscdk/cdk-tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down
2 changes: 1 addition & 1 deletion test/awscdk/awscdk-app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
});
});

Expand Down

0 comments on commit d11fb80

Please sign in to comment.