@friggframework/devtools 2.0.0--canary.461.91e9228.0 → 2.0.0--canary.461.72f71f4.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,36 +183,29 @@ describe('MigrationBuilder', () => {
|
|
|
183
183
|
|
|
184
184
|
const result = await builder.build(appDef, {});
|
|
185
185
|
|
|
186
|
-
//
|
|
186
|
+
// Worker and router now have DIFFERENT package configs (split for size optimization)
|
|
187
187
|
expect(result.functions.dbMigrationWorker.package).toBeDefined();
|
|
188
188
|
expect(result.functions.dbMigrationRouter.package).toBeDefined();
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
expect(
|
|
196
|
-
expect(
|
|
197
|
-
|
|
198
|
-
//
|
|
199
|
-
expect(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
expect(
|
|
203
|
-
expect(
|
|
204
|
-
expect(
|
|
205
|
-
expect(packageConfig.exclude).toContain('src/**'); // Migration handlers don't need backend source
|
|
206
|
-
|
|
207
|
-
// Should NOT exclude generated Prisma clients/schemas - worker needs them
|
|
208
|
-
expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/generated/**');
|
|
189
|
+
expect(result.functions.dbMigrationWorker.package).not.toBe(result.functions.dbMigrationRouter.package);
|
|
190
|
+
|
|
191
|
+
const workerPackage = result.functions.dbMigrationWorker.package;
|
|
192
|
+
const routerPackage = result.functions.dbMigrationRouter.package;
|
|
193
|
+
|
|
194
|
+
// Verify worker excludes Prisma client (in layer) but keeps CLI
|
|
195
|
+
expect(workerPackage.exclude).toContain('node_modules/@prisma/client/**');
|
|
196
|
+
expect(workerPackage.exclude).toContain('node_modules/@friggframework/core/generated/**');
|
|
197
|
+
|
|
198
|
+
// Verify router excludes ALL WASM files (doesn't run migrations)
|
|
199
|
+
expect(routerPackage.exclude).toContain('**/*.wasm*');
|
|
200
|
+
|
|
201
|
+
// Verify common exclusions for both
|
|
202
|
+
expect(workerPackage.exclude).toContain('node_modules/**/node_modules/**');
|
|
203
|
+
expect(workerPackage.exclude).toContain('**/*.test.js');
|
|
204
|
+
expect(workerPackage.exclude).toContain('src/**');
|
|
209
205
|
|
|
210
206
|
// Should NOT exclude migration handlers - they're needed!
|
|
211
|
-
expect(
|
|
212
|
-
expect(
|
|
213
|
-
|
|
214
|
-
// Should NOT exclude integrations module - migration router needs process-repository-factory
|
|
215
|
-
expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/integrations/**');
|
|
207
|
+
expect(workerPackage.exclude).not.toContain('node_modules/@friggframework/core/handlers/routers/**');
|
|
208
|
+
expect(workerPackage.exclude).not.toContain('node_modules/@friggframework/core/handlers/workers/**');
|
|
216
209
|
});
|
|
217
210
|
|
|
218
211
|
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.
|
|
4
|
+
"version": "2.0.0--canary.461.72f71f4.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.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.72f71f4.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.72f71f4.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.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.72f71f4.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.72f71f4.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": "
|
|
73
|
+
"gitHead": "72f71f44658fc1a13dbafc12fd1467ae4a471d4c"
|
|
74
74
|
}
|