@friggframework/devtools 2.0.0--canary.461.72f71f4.0 → 2.0.0--canary.461.40be5d4.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.
|
@@ -113,7 +113,7 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
113
113
|
'node_modules/.prisma/**',
|
|
114
114
|
'node_modules/@friggframework/core/generated/**',
|
|
115
115
|
// But KEEP node_modules/prisma/** (the CLI with WASM)
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
// Same base exclusions as router
|
|
118
118
|
'node_modules/**/node_modules/**',
|
|
119
119
|
'node_modules/aws-sdk/**',
|
|
@@ -148,6 +148,12 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
148
148
|
// Note: Migration worker DOES need Prisma CLI WASM files (for migrate deploy)
|
|
149
149
|
// Only exclude runtime engine WASM (query engine internals)
|
|
150
150
|
'**/runtime/*.wasm',
|
|
151
|
+
// Additional size optimizations for worker
|
|
152
|
+
'**/*.map', // Source maps not needed in production
|
|
153
|
+
'**/*.md', // Documentation
|
|
154
|
+
'**/examples/**',
|
|
155
|
+
'**/docs/**',
|
|
156
|
+
'**/*.d.ts', // TypeScript declarations
|
|
151
157
|
'src/**',
|
|
152
158
|
'test/**',
|
|
153
159
|
'layers/**',
|
|
@@ -169,7 +175,13 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
169
175
|
const migrationRouterPackageConfig = {
|
|
170
176
|
individually: true,
|
|
171
177
|
exclude: [
|
|
172
|
-
//
|
|
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
|
|
173
185
|
'node_modules/**/node_modules/**',
|
|
174
186
|
'node_modules/aws-sdk/**',
|
|
175
187
|
'node_modules/@aws-sdk/**',
|
|
@@ -204,6 +216,15 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
204
216
|
// Router doesn't run migrations - exclude ALL WASM files
|
|
205
217
|
'**/runtime/*.wasm',
|
|
206
218
|
'**/*.wasm*', // Exclude all WASM (Prisma CLI + query engine)
|
|
219
|
+
// Additional size optimizations for router
|
|
220
|
+
'**/*.map', // Source maps not needed in production
|
|
221
|
+
'**/*.md', // Documentation
|
|
222
|
+
'**/test/**',
|
|
223
|
+
'**/tests/**',
|
|
224
|
+
'**/__tests__/**',
|
|
225
|
+
'**/examples/**',
|
|
226
|
+
'**/docs/**',
|
|
227
|
+
'**/*.d.ts', // TypeScript declarations
|
|
207
228
|
'src/**',
|
|
208
229
|
'test/**',
|
|
209
230
|
'layers/**',
|
|
@@ -250,7 +271,7 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
250
271
|
// Create migration router Lambda (HTTP API)
|
|
251
272
|
result.functions.dbMigrationRouter = {
|
|
252
273
|
handler: 'node_modules/@friggframework/core/handlers/routers/db-migration.handler',
|
|
253
|
-
|
|
274
|
+
// No Prisma layer needed - router doesn't access database
|
|
254
275
|
skipEsbuild: true,
|
|
255
276
|
timeout: 30, // Router just queues jobs, doesn't run migrations
|
|
256
277
|
memorySize: 512,
|
|
@@ -190,14 +190,14 @@ describe('MigrationBuilder', () => {
|
|
|
190
190
|
|
|
191
191
|
const workerPackage = result.functions.dbMigrationWorker.package;
|
|
192
192
|
const routerPackage = result.functions.dbMigrationRouter.package;
|
|
193
|
-
|
|
193
|
+
|
|
194
194
|
// Verify worker excludes Prisma client (in layer) but keeps CLI
|
|
195
195
|
expect(workerPackage.exclude).toContain('node_modules/@prisma/client/**');
|
|
196
196
|
expect(workerPackage.exclude).toContain('node_modules/@friggframework/core/generated/**');
|
|
197
|
-
|
|
197
|
+
|
|
198
198
|
// Verify router excludes ALL WASM files (doesn't run migrations)
|
|
199
199
|
expect(routerPackage.exclude).toContain('**/*.wasm*');
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
// Verify common exclusions for both
|
|
202
202
|
expect(workerPackage.exclude).toContain('node_modules/**/node_modules/**');
|
|
203
203
|
expect(workerPackage.exclude).toContain('**/*.test.js');
|
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.40be5d4.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.40be5d4.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.40be5d4.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.40be5d4.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.40be5d4.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": "40be5d49a7b1b9492aedfd669b1ab4ce56c82c11"
|
|
74
74
|
}
|