UNPKG

dkershner6-projen-sst-app

Version:

DKershner's preferred constructs for Projen SST Apps.

29 lines (28 loc) 1.4 kB
import { AwsAppPublisherOptions, DeployJobStepBuilderParams, PublishToAwsOptions } from "dkershner6-projen-awscdk-core"; import { JestTransformer, Node20TypeScriptProjectJestOptions } from "dkershner6-projen-typescript"; import { Job, JobStep } from "projen/lib/github/workflows-model"; import { SstTypescriptApp, SstTypescriptAppOptions } from "projen-sst"; export interface Node20SstAppOptions extends SstTypescriptAppOptions { /** * Whether or not to pin the version of constructs to the version specified in the * `constructsVersion` property. */ readonly constructsVersionPinning?: boolean; readonly jestOptions?: Node20TypeScriptProjectJestOptions; /** * Whether to publish this App to AWS. */ readonly publishToAws?: boolean; /** * Populate in order to add a deploy to AWS job to the release workflow. */ readonly publishToAwsOptions?: PublishToAwsOptions; } export declare class Node20SstApp extends SstTypescriptApp { readonly jestTransformer: JestTransformer; private readonly publishToAwsOptions?; constructor(options: Node20SstAppOptions); buildPublishToAwsJob({ deployTask, branchName }: DeployJobStepBuilderParams, options: AwsAppPublisherOptions): Job; buildDeployToAwsJobStep({ deployTask, branchName, }: DeployJobStepBuilderParams): JobStep; private determineDeployTaskToUseForAwsJobStep; }