@friggframework/devtools 2.0.0--canary.461.3bae110.0 → 2.0.0--canary.461.432e510.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.
|
@@ -102,7 +102,7 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
102
102
|
'node_modules/@friggframework/core/generated/prisma-mongodb/**',
|
|
103
103
|
'node_modules/@friggframework/core/integrations/**',
|
|
104
104
|
'node_modules/@friggframework/core/user/**',
|
|
105
|
-
|
|
105
|
+
// Note: DO NOT exclude handlers/routers/** or handlers/workers/** - migration functions need them!
|
|
106
106
|
'**/query-engine-darwin*',
|
|
107
107
|
'**/schema-engine-darwin*',
|
|
108
108
|
'**/libquery_engine-darwin*',
|
|
@@ -186,7 +186,7 @@ describe('MigrationBuilder', () => {
|
|
|
186
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
|
-
|
|
189
|
+
|
|
190
190
|
// They should share the same config object (migrationPackageConfig)
|
|
191
191
|
expect(result.functions.dbMigrationWorker.package).toBe(result.functions.dbMigrationRouter.package);
|
|
192
192
|
|
|
@@ -194,7 +194,7 @@ describe('MigrationBuilder', () => {
|
|
|
194
194
|
const packageConfig = result.functions.dbMigrationWorker.package;
|
|
195
195
|
expect(packageConfig.individually).toBe(true);
|
|
196
196
|
expect(Array.isArray(packageConfig.exclude)).toBe(true);
|
|
197
|
-
|
|
197
|
+
|
|
198
198
|
// Critical exclusions to prevent Lambda size limit errors
|
|
199
199
|
expect(packageConfig.exclude).toContain('test/**');
|
|
200
200
|
expect(packageConfig.exclude).toContain('**/*.test.js');
|
|
@@ -203,9 +203,13 @@ describe('MigrationBuilder', () => {
|
|
|
203
203
|
expect(packageConfig.exclude).toContain('node_modules/typescript/**');
|
|
204
204
|
expect(packageConfig.exclude).toContain('node_modules/@friggframework/devtools/**');
|
|
205
205
|
expect(packageConfig.exclude).toContain('src/**'); // Migration handlers don't need backend source
|
|
206
|
-
|
|
206
|
+
|
|
207
207
|
// Should NOT exclude generated Prisma clients/schemas - worker needs them
|
|
208
208
|
expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/generated/**');
|
|
209
|
+
|
|
210
|
+
// Should NOT exclude migration handlers - they're needed!
|
|
211
|
+
expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/handlers/routers/**');
|
|
212
|
+
expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/handlers/workers/**');
|
|
209
213
|
});
|
|
210
214
|
|
|
211
215
|
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.432e510.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.432e510.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.432e510.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.432e510.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.432e510.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": "432e5101c818e2c87711baf96b829b6b60d00d97"
|
|
74
74
|
}
|