@friggframework/devtools 2.0.0--canary.461.da6a991.0 → 2.0.0--canary.461.94d7ddb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -175,7 +175,13 @@ class MigrationBuilder extends InfrastructureBuilder {
175
175
  const migrationRouterPackageConfig = {
176
176
  individually: true,
177
177
  exclude: [
178
- // Same base exclusions but EXCLUDE all WASM (router doesn't run migrations)
178
+ // Router doesn't access database - exclude ALL Prisma
179
+ 'node_modules/prisma/**', // Prisma CLI with engines (54MB!)
180
+ 'node_modules/@prisma/**', // Prisma engines
181
+ 'node_modules/.prisma/**',
182
+ 'node_modules/@friggframework/core/generated/**', // Generated clients
183
+
184
+ // Base exclusions
179
185
  'node_modules/**/node_modules/**',
180
186
  'node_modules/aws-sdk/**',
181
187
  'node_modules/@aws-sdk/**',
@@ -265,7 +271,7 @@ class MigrationBuilder extends InfrastructureBuilder {
265
271
  // Create migration router Lambda (HTTP API)
266
272
  result.functions.dbMigrationRouter = {
267
273
  handler: 'node_modules/@friggframework/core/handlers/routers/db-migration.handler',
268
- layers: [{ Ref: 'PrismaLambdaLayer' }],
274
+ // No Prisma layer needed - router doesn't access database
269
275
  skipEsbuild: true,
270
276
  timeout: 30, // Router just queues jobs, doesn't run migrations
271
277
  memorySize: 512,
@@ -246,7 +246,7 @@ describe('MigrationBuilder', () => {
246
246
  });
247
247
  });
248
248
 
249
- it('should include Prisma layer in both functions', async () => {
249
+ it('should only include Prisma layer in worker (router doesn\'t need database)', async () => {
250
250
  const appDef = {
251
251
  database: {
252
252
  postgres: {
@@ -257,8 +257,10 @@ describe('MigrationBuilder', () => {
257
257
 
258
258
  const result = await builder.build(appDef, {});
259
259
 
260
+ // Worker needs Prisma layer for runtime client
260
261
  expect(result.functions.dbMigrationWorker.layers).toEqual([{ Ref: 'PrismaLambdaLayer' }]);
261
- expect(result.functions.dbMigrationRouter.layers).toEqual([{ Ref: 'PrismaLambdaLayer' }]);
262
+ // Router doesn't access database - no Prisma layer needed
263
+ expect(result.functions.dbMigrationRouter.layers).toBeUndefined();
262
264
  });
263
265
 
264
266
  it('should set skipEsbuild for both functions', async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.461.da6a991.0",
4
+ "version": "2.0.0--canary.461.94d7ddb.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -11,8 +11,8 @@
11
11
  "@babel/eslint-parser": "^7.18.9",
12
12
  "@babel/parser": "^7.25.3",
13
13
  "@babel/traverse": "^7.25.3",
14
- "@friggframework/schemas": "2.0.0--canary.461.da6a991.0",
15
- "@friggframework/test": "2.0.0--canary.461.da6a991.0",
14
+ "@friggframework/schemas": "2.0.0--canary.461.94d7ddb.0",
15
+ "@friggframework/test": "2.0.0--canary.461.94d7ddb.0",
16
16
  "@hapi/boom": "^10.0.1",
17
17
  "@inquirer/prompts": "^5.3.8",
18
18
  "axios": "^1.7.2",
@@ -34,8 +34,8 @@
34
34
  "serverless-http": "^2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@friggframework/eslint-config": "2.0.0--canary.461.da6a991.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.461.da6a991.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.461.94d7ddb.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.461.94d7ddb.0",
39
39
  "aws-sdk-client-mock": "^4.1.0",
40
40
  "aws-sdk-client-mock-jest": "^4.1.0",
41
41
  "jest": "^30.1.3",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "da6a991d74aa3cd1e1f3c88c0eb34e7d85f8eb14"
73
+ "gitHead": "94d7ddb5c829c36c4be0f74dbfae235fe9425767"
74
74
  }