Skip to content

Commit

Permalink
refactor(projenrc): use CdkTsAppCompileBulider for api stack
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 28, 2023
1 parent 311c92d commit fc7f92d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ ghPipelineConstruct.tasks.tryFind('docgen')?.reset?.()
new Vitest(ghPipelineConstruct)

// Stacks
const apiStack = AwsCdkTsAppBuilder.build({
const apiStack = AwsCdkTsAppBuilder.add(new CdkTsAppCompileBuilder()).build({
name: 'stacks.api',
integrationTestAutoDiscover: true,
workspaceDeps: [
Expand Down Expand Up @@ -468,17 +468,7 @@ const apiStack = AwsCdkTsAppBuilder.build({
prettier: true,
jest: false,
})
apiStack.cdkConfig.json.addOverride(
'app',
apiStack.formatExecCommand('tsx', 'src/main.ts'),
)
apiStack.tsconfigDev.addInclude('crisiscleanup.config.ts')
apiStack.addGitIgnore('cdk.context.json')
const stackPostCompile = apiStack.tasks.tryFind('post-compile')!
stackPostCompile.reset()
stackPostCompile.spawn(apiStack.tasks.tryFind('synth:silent')!, {
condition: `bash -c '[[ -z "$SKIP_SYNTH" ]]'`,
})
new Vitest(apiStack)

const maintenanceStack = AwsCdkTsAppBuilder.add(
Expand Down

0 comments on commit fc7f92d

Please sign in to comment.