From c56d1be1a81d4d3bf1bd335dc366295746b10358 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Thu, 2 Jan 2025 15:16:47 -0800 Subject: [PATCH] feat(esm): moving braze cdk to esm --- .../account-data-deleter/src/lambda/eventLambda.ts | 2 +- infrastructure/braze/package.json | 1 + infrastructure/braze/src/main.ts | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/infrastructure/account-data-deleter/src/lambda/eventLambda.ts b/infrastructure/account-data-deleter/src/lambda/eventLambda.ts index e9a42ebda..9598bdd3d 100644 --- a/infrastructure/account-data-deleter/src/lambda/eventLambda.ts +++ b/infrastructure/account-data-deleter/src/lambda/eventLambda.ts @@ -2,7 +2,7 @@ import { SqsLambda, SqsLambdaProps } from './base/sqsLambda.ts'; import { config as stackConfig } from '../config/index.ts'; import { sqsQueue } from '@cdktf/provider-aws'; -import { ApplicationSqsSnsTopicSubscription } from '@pocket-tools/terraform-modules/'; +import { ApplicationSqsSnsTopicSubscription } from '@pocket-tools/terraform-modules'; import { Construct } from 'constructs'; diff --git a/infrastructure/braze/package.json b/infrastructure/braze/package.json index 56fb35257..5abf3b0d1 100644 --- a/infrastructure/braze/package.json +++ b/infrastructure/braze/package.json @@ -3,6 +3,7 @@ "version": "1.0.0", "private": true, "license": "MPL-2.0", + "type": "module", "main": "dist/main.js", "types": "dist/main.ts", "scripts": { diff --git a/infrastructure/braze/src/main.ts b/infrastructure/braze/src/main.ts index 6f210e9bf..5f26a26ed 100644 --- a/infrastructure/braze/src/main.ts +++ b/infrastructure/braze/src/main.ts @@ -1,11 +1,11 @@ import { Construct } from 'constructs'; import { App, S3Backend, TerraformStack } from 'cdktf'; import { provider as awsProvider } from '@cdktf/provider-aws'; -import { config } from './config'; -import { EmailSendDomain } from './emailSendDomain'; +import { config } from './config/index.ts'; +import { EmailSendDomain } from './emailSendDomain.ts'; import * as fs from 'fs'; -import { ClickTrackingDomain } from './clickTrackingDomain'; -import { DataExportBucket } from './dataExport'; +import { ClickTrackingDomain } from './clickTrackingDomain.ts'; +import { DataExportBucket } from './dataExport.ts'; class Braze extends TerraformStack { constructor(scope: Construct, name: string) {