Skip to content

Commit

Permalink
[nx/pulumi] Hide undefinded log when envVars are not defined (#102)
Browse files Browse the repository at this point in the history
* [nx/pulumi] Hide undefined log when envVars are not defined
* Changeset
  • Loading branch information
catrielmuller authored Jun 10, 2024
1 parent ef7e035 commit 6f3b3b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-houses-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@wanews/nx-pulumi': minor
---

Hide undefinded log when the env vars are not defined
5 changes: 4 additions & 1 deletion libs/pulumi/src/executors/up/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export default async function runUpExecutor(
]

console.log(`> pulumi ${pulumiArgs.join(' ')}`)
console.log(`${options.envVars}`)
if (options.envVars) {
console.log(`${options.envVars}`)
}

const pulumi = execa('pulumi', pulumiArgs, {
stdio: [process.stdin, process.stdout, process.stderr],
env: envObject,
Expand Down

0 comments on commit 6f3b3b3

Please sign in to comment.