From 4ae160bb02fa936cfdd9432e3b82d44c39b1713d Mon Sep 17 00:00:00 2001 From: Ferdinand Frank Date: Wed, 13 Nov 2024 09:53:01 +0100 Subject: [PATCH] Add docs about deploying with a custom tsconfig file --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69abc7a..492ff7e 100644 --- a/README.md +++ b/README.md @@ -189,14 +189,23 @@ Alternatively, you can run the following commands separately to customize the de ```bash yarn build yarn cdk deploy --require-approval never --all --app="yarn ts-node stack/index.ts" + +# or with pnpm +pnpm build +pnpm cdk deploy --require-approval never --all --app="pnpm ts-node stack/index.ts" ``` -For example, to run the commands with `pnpm`, you can run the following commands: +#### Deploy with a custom TypeScript configuration +Depending on your Nuxt app's TypeScript configuration and the setup of your stack, you might need a different TypeScript configuration for the CDK stack. +You can do so by creating a `tsconfig.cdk.json` file in the root directory of your project and adjust the deployment command accordingly: ```bash -```bash +yarn build +yarn cdk deploy --require-approval never --all --app="yarn ts-node --project=tsconfig.cdk.json stack/index.ts" + +# or with pnpm pnpm build -pnpm cdk deploy --require-approval never --all --app="pnpm ts-node stack/index.ts" +pnpm cdk deploy --require-approval never --all --app="pnpm ts-node --project=tsconfig.cdk.json stack/index.ts" ``` ## Destroy the Stack