@friggframework/devtools 2.0.0--canary.461.12ba2eb.0 → 2.0.0--canary.461.2db86ce.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.
@@ -183,31 +183,26 @@ describe('MigrationBuilder', () => {
183
183
 
184
184
  const result = await builder.build(appDef, {});
185
185
 
186
- // Both migration functions should have package configs
186
+ // Both migration functions should have the same package config
187
187
  expect(result.functions.dbMigrationWorker.package).toBeDefined();
188
188
  expect(result.functions.dbMigrationRouter.package).toBeDefined();
189
+
190
+ // They should share the same config object (migrationPackageConfig)
191
+ expect(result.functions.dbMigrationWorker.package).toBe(result.functions.dbMigrationRouter.package);
189
192
 
190
- // Check worker package config
191
- const workerPackage = result.functions.dbMigrationWorker.package;
192
- expect(workerPackage.individually).toBe(true);
193
- expect(workerPackage.exclude).toBeDefined();
194
- expect(Array.isArray(workerPackage.exclude)).toBe(true);
193
+ // Verify the shared package config has critical exclusions for size optimization
194
+ const packageConfig = result.functions.dbMigrationWorker.package;
195
+ expect(packageConfig.individually).toBe(true);
196
+ expect(Array.isArray(packageConfig.exclude)).toBe(true);
195
197
 
196
- // Verify critical exclusions for size optimization
197
- expect(workerPackage.exclude).toContain('test/**');
198
- expect(workerPackage.exclude).toContain('**/*.test.js');
199
- expect(workerPackage.exclude).toContain('node_modules/**/node_modules/**');
200
- expect(workerPackage.exclude).toContain('node_modules/esbuild/**');
201
- expect(workerPackage.exclude).toContain('node_modules/typescript/**');
202
- expect(workerPackage.exclude).toContain('node_modules/@friggframework/devtools/**');
203
- expect(workerPackage.exclude).toContain('src/**'); // Migration handlers don't need backend source
204
-
205
- // Check router package config
206
- const routerPackage = result.functions.dbMigrationRouter.package;
207
- expect(routerPackage.individually).toBe(true);
208
- expect(routerPackage.exclude).toBeDefined();
209
- expect(routerPackage.exclude).toContain('test/**');
210
- expect(routerPackage.exclude).toContain('node_modules/**/node_modules/**');
198
+ // Critical exclusions to prevent Lambda size limit errors
199
+ expect(packageConfig.exclude).toContain('test/**');
200
+ expect(packageConfig.exclude).toContain('**/*.test.js');
201
+ expect(packageConfig.exclude).toContain('node_modules/**/node_modules/**');
202
+ expect(packageConfig.exclude).toContain('node_modules/esbuild/**');
203
+ expect(packageConfig.exclude).toContain('node_modules/typescript/**');
204
+ expect(packageConfig.exclude).toContain('node_modules/@friggframework/devtools/**');
205
+ expect(packageConfig.exclude).toContain('src/**'); // Migration handlers don't need backend source
211
206
  });
212
207
 
213
208
  it('should add queue URL to environment', 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.12ba2eb.0",
4
+ "version": "2.0.0--canary.461.2db86ce.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.12ba2eb.0",
15
- "@friggframework/test": "2.0.0--canary.461.12ba2eb.0",
14
+ "@friggframework/schemas": "2.0.0--canary.461.2db86ce.0",
15
+ "@friggframework/test": "2.0.0--canary.461.2db86ce.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.12ba2eb.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.461.12ba2eb.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.461.2db86ce.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.461.2db86ce.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": "12ba2eb2888f4999e52cf4b8f6eadc9f1beacfb0"
73
+ "gitHead": "2db86ce72c7e8f37cfcf3576560288dd2322065e"
74
74
  }