Skip to content

Commit

Permalink
fix(projenrc): ensure bash is used for synth conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <bradenmars@bradenmars.me>
  • Loading branch information
BradenM committed Aug 21, 2023
1 parent e7b99db commit de67307
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ monorepo.pnpm.addPatch(
const stackPostCompile = apiStack.tasks.tryFind('post-compile')!
stackPostCompile.reset()
stackPostCompile.spawn(apiStack.tasks.tryFind('synth:silent')!, {
condition: '[[ -z "$SKIP_SYNTH" ]]',
condition: `bash -c '[[ -z "$SKIP_SYNTH" ]]'`,
})
new Vitest(apiStack)

Expand All @@ -489,7 +489,7 @@ maintenanceStack.cdkConfig.json.addOverride(
const maintenancePostCompile = maintenanceStack.tasks.tryFind('post-compile')!
maintenancePostCompile.reset()
maintenancePostCompile.spawn(maintenanceStack.tasks.tryFind('synth:silent')!, {
condition: '[[ -z "$SKIP_SYNTH" ]] && [[ -n "$MAINTENANCE_SITE_SOURCE" ]]',
condition: `bash -c '[[ -z "$SKIP_SYNTH" ]] && [[ -n "$MAINTENANCE_SITE_SOURCE" ]]'`,
})
new Vitest(maintenanceStack)

Expand Down
2 changes: 1 addition & 1 deletion packages/stacks/api/.projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/stacks/maintenance-site/.projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de67307

Please sign in to comment.