Skip to content

Commit cbd33e8

Browse files
authored
refactor(api): remove unused email templates and update buildspec (#1784)
1 parent 5afd2dc commit cbd33e8

File tree

5 files changed

+0
-325
lines changed

5 files changed

+0
-325
lines changed

apps/api/buildspec.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ phases:
3232
- echo "Installing API dependencies only..."
3333
- bun install --filter=@comp/api --frozen-lockfile || bun install --filter=@comp/api --ignore-scripts || bun install --ignore-scripts
3434

35-
- echo "Building @trycompai/email package..."
36-
- cd packages/email
37-
- bun run build
38-
- cd ../..
39-
4035
- echo "Building NestJS application..."
4136
- echo "APP_NAME is set to $APP_NAME"
4237
- echo "Current directory $(pwd)"
@@ -60,9 +55,6 @@ phases:
6055
- '[ -f "../docker-build/src/main.js" ] || { echo "❌ main.js not found in docker-build/src"; exit 1; }'
6156

6257
- mkdir -p ../docker-build/node_modules/@trycompai
63-
- mkdir -p ../docker-build/node_modules/@trycompai/email
64-
- cp -r ../../packages/email/dist ../docker-build/node_modules/@trycompai/email/
65-
- cp ../../packages/email/package.json ../docker-build/node_modules/@trycompai/email/
6658
- mkdir -p ../docker-build/node_modules/@trycompai/utils
6759
- cp -r ../../packages/utils/src ../docker-build/node_modules/@trycompai/utils/
6860
- cp ../../packages/utils/package.json ../docker-build/node_modules/@trycompai/utils/

packages/email/emails/access-granted.tsx

Lines changed: 0 additions & 109 deletions
This file was deleted.

packages/email/emails/access-reclaim.tsx

Lines changed: 0 additions & 105 deletions
This file was deleted.

packages/email/emails/nda-signing.tsx

Lines changed: 0 additions & 100 deletions
This file was deleted.

packages/email/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Email templates
2-
export * from './emails/access-granted';
3-
export * from './emails/access-reclaim';
42
export * from './emails/all-policy-notification';
53
export * from './emails/invite';
64
export * from './emails/invite-portal';
75
export * from './emails/magic-link';
86
export * from './emails/marketing/welcome';
9-
export * from './emails/nda-signing';
107
export * from './emails/otp';
118
export * from './emails/policy-notification';
129
export * from './emails/waitlist';

0 commit comments

Comments
 (0)