Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(esm): move all infrastructure packages to esm #1002

Merged
merged 26 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5f14412
feat(esm): moving account data deleter to esm
bassrock Jan 2, 2025
e995ad4
feat(esm): moving account delete monitor to esm
bassrock Jan 2, 2025
d20885d
feat(esm): moving annotations api to esm
bassrock Jan 2, 2025
c56d1be
feat(esm): moving braze cdk to esm
bassrock Jan 2, 2025
af28eb1
feat(esm): moving braze content proxy to esm
bassrock Jan 2, 2025
a4236ba
feat(esm): moving client api to esm
bassrock Jan 2, 2025
8ce02ee
feat(esm): moving feature flags to esm
bassrock Jan 2, 2025
b2c87b5
feat(esm): moving fxa web hook proxy to esm
bassrock Jan 2, 2025
f1f0cb5
feat(esm): moving image api to esm
bassrock Jan 2, 2025
0c5e533
feat(esm): moving instant sync events to esm
bassrock Jan 2, 2025
c987b82
feat(esm): moving list-api to esm
bassrock Jan 2, 2025
058c2e7
feat(esm): moving notes-api to esm
bassrock Jan 2, 2025
e599081
feat(esm): moving otel-collector to esm
bassrock Jan 2, 2025
e99a10e
feat(esm): moving parser graphql to esm
bassrock Jan 2, 2025
66ec627
feat(esm): moving event bridge to csm
bassrock Jan 2, 2025
7909928
feat(esm): moving push server to esm
bassrock Jan 2, 2025
db705fa
feat(esm): moving sendgrid data to esm
bassrock Jan 2, 2025
dae5616
feat(esm): moving shareable lists to esm
bassrock Jan 2, 2025
2e85147
feat(esm): moving shared snowplow to esm
bassrock Jan 2, 2025
fbd035d
feat(esm): moving shares api to esm
bassrock Jan 2, 2025
e637b72
feat(esm): moving transactional emails to esm
bassrock Jan 2, 2025
e3b4dac
feat(esm): moving user-api to esm
bassrock Jan 2, 2025
7076995
feat(esm): moving v3-proxy-api to esm
bassrock Jan 2, 2025
2d5e4d9
fix(notes): fixing notes typescript 5.7
bassrock Jan 2, 2025
afcfe81
fix(esm): updating resource imports
bassrock Jan 2, 2025
4f8780b
fix(lint): updating eslint
bassrock Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion infrastructure/account-data-deleter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from './config';
import { config } from './config/index.ts';

import {
cloudwatchLogGroup,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config as stackConfig } from '../../config';
import { config as stackConfig } from '../../config/index.ts';

import { dataAwsSsmParameter } from '@cdktf/provider-aws';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config, config as stackConfig } from '../config';
import { config, config as stackConfig } from '../config/index.ts';

import {
dataAwsSsmParameter,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SqsLambda, SqsLambdaProps } from './base/sqsLambda';
import { config as stackConfig } from '../config';
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';

Expand Down
8 changes: 4 additions & 4 deletions infrastructure/account-data-deleter/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { config } from './config';
import { DataDeleterApp, DataDeleterAppConfig } from './dataDeleterApp';
import { BatchDeleteLambdaResources } from './lambda/batchDeleteLambdaResources';
import { EventLambda } from './lambda/eventLambda';
import { config } from './config/index.ts';
import { DataDeleterApp, DataDeleterAppConfig } from './dataDeleterApp.ts';
import { BatchDeleteLambdaResources } from './lambda/batchDeleteLambdaResources.ts';
import { EventLambda } from './lambda/eventLambda.ts';

import { provider as archiveProvider } from '@cdktf/provider-archive';
import {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/account-delete-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/account-delete-monitor/src/dynamodb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from './config';
import { config } from './config/index.ts';

import {
ApplicationDynamoDBTable,
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/account-delete-monitor/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { config } from './config';
import { DynamoDB } from './dynamodb';
import { SQSEventLambda } from './sqsEventLambda';
import { config } from './config/index.ts';
import { DynamoDB } from './dynamodb.ts';
import { SQSEventLambda } from './sqsEventLambda.ts';

import { provider as archiveProvider } from '@cdktf/provider-archive';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config as stackConfig } from './config';
import { config as stackConfig } from './config/index.ts';

import { dataAwsSsmParameter } from '@cdktf/provider-aws';
import {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/annotations-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/annotations-api/src/SqsLambda.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Construct } from 'constructs';
import { config } from './config';
import { config } from './config/index.ts';
import {
LAMBDA_RUNTIMES,
PocketPagerDuty,
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/annotations-api/src/dynamodb.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Construct } from 'constructs';
import { config } from './config';
import { config } from './config/index.ts';
import {
ApplicationDynamoDBTable,
ApplicationDynamoDBTableCapacityMode,
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/annotations-api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import {
import { provider as localProvider } from '@cdktf/provider-local';
import { provider as nullProvider } from '@cdktf/provider-null';
import { provider as archiveProvider } from '@cdktf/provider-archive';
import { config } from './config';
import { config } from './config/index.ts';
import {
ApplicationSQSQueue,
PocketALBApplication,
PocketAwsSyntheticChecks,
PocketVPC,
ApplicationSqsSnsTopicSubscription,
} from '@pocket-tools/terraform-modules';
import { DynamoDB } from './dynamodb';
import { SqsLambda } from './SqsLambda';
import { DynamoDB } from './dynamodb.ts';
import { SqsLambda } from './SqsLambda.ts';

class AnnotationsAPI extends TerraformStack {
constructor(scope: Construct, name: string) {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/braze-content-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/braze-content-proxy/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
wafv2WebAcl,
wafv2IpSet,
} from '@cdktf/provider-aws';
import { config } from './config';
import { config } from './config/index.ts';
import { PocketALBApplication } from '@pocket-tools/terraform-modules';
import { provider as localProvider } from '@cdktf/provider-local';
import { provider as nullProvider } from '@cdktf/provider-null';
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/braze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -25,6 +26,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
8 changes: 4 additions & 4 deletions infrastructure/braze/src/main.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/client-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "client-api-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"scripts": {
Expand All @@ -27,6 +28,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/client-api/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config } from './config';
import { config } from './config/index.ts';

import {
provider as awsProvider,
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/feature-flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "feature-flags-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"scripts": {
Expand All @@ -26,6 +27,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/feature-flags/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { Construct } from 'constructs';
import { App, S3Backend, TerraformStack } from 'cdktf';
import fs from 'fs';
import { config } from './config';
import { config } from './config/index.ts';

class FeatureFlags extends TerraformStack {
constructor(scope: Construct, name: string) {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/fxa-webhook-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"private": true,
"license": "MPL-2.0",
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"scripts": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
4 changes: 2 additions & 2 deletions infrastructure/fxa-webhook-proxy/src/apiGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import {
PocketApiGatewayProps,
PocketVPC,
} from '@pocket-tools/terraform-modules';
import { config } from './config';
import { getEnvVariableValues } from './utilities';
import { config } from './config/index.ts';
import { getEnvVariableValues } from './utilities.ts';
import { Construct } from 'constructs';
import { dataAwsSnsTopic, sqsQueue } from '@cdktf/provider-aws';

Expand Down
6 changes: 3 additions & 3 deletions infrastructure/fxa-webhook-proxy/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { Construct } from 'constructs';
import { App, S3Backend, TerraformStack } from 'cdktf';
import { config } from './config';
import { config } from './config/index.ts';
import {
ApplicationSQSQueue,
PocketVPC,
} from '@pocket-tools/terraform-modules';
import { provider as awsProvider, dataAwsSnsTopic } from '@cdktf/provider-aws';
import { SqsLambda } from './sqsLambda';
import { SqsLambda } from './sqsLambda.ts';
import { provider as archiveProvider } from '@cdktf/provider-archive';
import { provider as nullProvider } from '@cdktf/provider-null';
import { provider as localProvider } from '@cdktf/provider-local';
import { ApiGateway } from './apiGateway';
import { ApiGateway } from './apiGateway.ts';

class FxAWebhookProxy extends TerraformStack {
constructor(scope: Construct, name: string) {
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/fxa-webhook-proxy/src/sqsLambda.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Construct } from 'constructs';
import { config } from './config';
import { config } from './config/index.ts';
import {
LAMBDA_RUNTIMES,
PocketSQSWithLambdaTarget,
PocketVPC,
} from '@pocket-tools/terraform-modules';
import { getEnvVariableValues } from './utilities';
import { getEnvVariableValues } from './utilities.ts';
import { dataAwsSnsTopic, sqsQueue } from '@cdktf/provider-aws';

export class SqsLambda extends Construct {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/fxa-webhook-proxy/src/utilities.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dataAwsSsmParameter } from '@cdktf/provider-aws';
import { config } from './config';
import { config } from './config/index.ts';
import { Construct } from 'constructs';

export function getEnvVariableValues(scope: Construct) {
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/image-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "image-api-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"scripts": {
Expand All @@ -27,6 +28,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/image-api/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Construct } from 'constructs';
import { App, S3Backend, TerraformStack } from 'cdktf';
import { config } from './config';
import { config } from './config/index.ts';
import {
ApplicationServerlessRedis,
PocketALBApplication,
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/instant-sync-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -28,6 +29,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
4 changes: 2 additions & 2 deletions infrastructure/instant-sync-events/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { config } from './config';
import { SQSEventLambda } from './sqsEventLambda';
import { config } from './config/index.ts';
import { SQSEventLambda } from './sqsEventLambda.ts';

import { provider as archiveProvider } from '@cdktf/provider-archive';
import {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/instant-sync-events/src/sqsEventLambda.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { config as stackConfig } from './config';
import { config as stackConfig } from './config/index.ts';

import {
dataAwsSsmParameter,
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/list-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "list-api-cdk",
"version": "1.0.0",
"private": true,
"type": "module",
"main": "dist/main.js",
"types": "src/main.ts",
"scripts": {
Expand All @@ -27,6 +28,6 @@
"@types/node": "^22.8.2",
"ts-node": "10.9.2",
"tsconfig": "workspace:*",
"typescript": "5.5.4"
"typescript": "5.7.2"
}
}
2 changes: 1 addition & 1 deletion infrastructure/list-api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@pocket-tools/terraform-modules';
import { Construct } from 'constructs';
import { App, S3Backend, TerraformStack } from 'cdktf';
import { config } from './config';
import { config } from './config/index.ts';

class ListAPI extends TerraformStack {
constructor(scope: Construct, name: string) {
Expand Down
Loading
Loading