@friggframework/devtools 2.0.0-next.46 → 2.0.0-next.47
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.
|
@@ -237,10 +237,21 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
237
237
|
console.log(' 🔍 DEBUG: result.functions is:', typeof result.functions, result.functions);
|
|
238
238
|
// Migration WORKER package config (needs Prisma CLI WASM files)
|
|
239
239
|
const migrationWorkerPackageConfig = {
|
|
240
|
+
individually: true,
|
|
240
241
|
exclude: [
|
|
242
|
+
// Exclude Prisma runtime client - it's in the Lambda Layer
|
|
243
|
+
'node_modules/@prisma/client/**',
|
|
244
|
+
'node_modules/.prisma/**',
|
|
245
|
+
'node_modules/@friggframework/core/generated/**',
|
|
246
|
+
// But KEEP node_modules/prisma/** (the CLI with WASM)
|
|
247
|
+
|
|
248
|
+
// Exclude ALL nested node_modules
|
|
249
|
+
'node_modules/**/node_modules/**',
|
|
250
|
+
|
|
241
251
|
// Exclude AWS SDK (provided by Lambda runtime)
|
|
242
252
|
'node_modules/aws-sdk/**',
|
|
243
253
|
'node_modules/@aws-sdk/**',
|
|
254
|
+
|
|
244
255
|
// Exclude build tools
|
|
245
256
|
'node_modules/esbuild/**',
|
|
246
257
|
'node_modules/@esbuild/**',
|
|
@@ -253,6 +264,8 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
253
264
|
'node_modules/serverless-offline-sqs/**',
|
|
254
265
|
'node_modules/serverless-dotenv-plugin/**',
|
|
255
266
|
'node_modules/serverless-kms-grants/**',
|
|
267
|
+
|
|
268
|
+
// Exclude dev dependencies
|
|
256
269
|
'node_modules/@friggframework/test/**',
|
|
257
270
|
'node_modules/@friggframework/eslint-config/**',
|
|
258
271
|
'node_modules/@friggframework/prettier-config/**',
|
|
@@ -261,23 +274,39 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
261
274
|
'node_modules/jest/**',
|
|
262
275
|
'node_modules/prettier/**',
|
|
263
276
|
'node_modules/eslint/**',
|
|
277
|
+
|
|
278
|
+
// Exclude non-essential Frigg core modules
|
|
264
279
|
'node_modules/@friggframework/core/generated/prisma-mongodb/**',
|
|
265
280
|
'node_modules/@friggframework/core/integrations/**',
|
|
266
281
|
'node_modules/@friggframework/core/user/**',
|
|
282
|
+
|
|
283
|
+
// Exclude other handlers we don't need (keep db-migration worker)
|
|
284
|
+
'node_modules/@friggframework/core/handlers/routers/auth.js',
|
|
285
|
+
'node_modules/@friggframework/core/handlers/routers/health.js',
|
|
286
|
+
'node_modules/@friggframework/core/handlers/routers/user.js',
|
|
287
|
+
'node_modules/@friggframework/core/handlers/routers/websocket.js',
|
|
288
|
+
'node_modules/@friggframework/core/handlers/routers/integration-*.js',
|
|
289
|
+
'node_modules/@friggframework/core/handlers/workers/integration-*.js',
|
|
290
|
+
|
|
291
|
+
// Exclude wrong OS binaries
|
|
267
292
|
'**/query-engine-darwin*',
|
|
268
293
|
'**/schema-engine-darwin*',
|
|
269
294
|
'**/libquery_engine-darwin*',
|
|
270
295
|
'**/*-darwin-arm64*',
|
|
271
296
|
'**/*-darwin*',
|
|
297
|
+
|
|
272
298
|
// Migration worker DOES need Prisma CLI WASM files (for migrate deploy)
|
|
273
299
|
// Only exclude runtime engine WASM (query engine internals)
|
|
274
300
|
'**/runtime/*.wasm',
|
|
301
|
+
|
|
275
302
|
// Additional size optimizations
|
|
276
303
|
'**/*.map',
|
|
277
304
|
'**/*.md',
|
|
305
|
+
'**/LICENSE*',
|
|
306
|
+
'**/*.d.ts',
|
|
307
|
+
'**/*.d.mts',
|
|
278
308
|
'**/examples/**',
|
|
279
309
|
'**/docs/**',
|
|
280
|
-
'**/*.d.ts',
|
|
281
310
|
'src/**',
|
|
282
311
|
'test/**',
|
|
283
312
|
'layers/**',
|
|
@@ -297,21 +326,37 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
297
326
|
|
|
298
327
|
// Migration ROUTER package config (lighter, no Prisma CLI needed)
|
|
299
328
|
const migrationRouterPackageConfig = {
|
|
329
|
+
individually: true,
|
|
300
330
|
exclude: [
|
|
331
|
+
// Exclude Prisma runtime client - it's in the Lambda Layer
|
|
332
|
+
'node_modules/@prisma/client/**',
|
|
333
|
+
'node_modules/.prisma/**',
|
|
334
|
+
'node_modules/@friggframework/core/generated/**',
|
|
335
|
+
|
|
336
|
+
// Router doesn't need Prisma CLI at all
|
|
337
|
+
'node_modules/prisma/**',
|
|
338
|
+
|
|
339
|
+
// Exclude ALL nested node_modules
|
|
340
|
+
'node_modules/**/node_modules/**',
|
|
341
|
+
|
|
301
342
|
// Exclude AWS SDK (provided by Lambda runtime)
|
|
302
343
|
'node_modules/aws-sdk/**',
|
|
303
344
|
'node_modules/@aws-sdk/**',
|
|
345
|
+
|
|
304
346
|
// Exclude build tools
|
|
305
347
|
'node_modules/esbuild/**',
|
|
306
348
|
'node_modules/@esbuild/**',
|
|
307
349
|
'node_modules/typescript/**',
|
|
308
350
|
'node_modules/webpack/**',
|
|
351
|
+
'node_modules/osls/**',
|
|
309
352
|
'node_modules/serverless-esbuild/**',
|
|
310
353
|
'node_modules/serverless-jetpack/**',
|
|
311
354
|
'node_modules/serverless-offline/**',
|
|
312
355
|
'node_modules/serverless-offline-sqs/**',
|
|
313
356
|
'node_modules/serverless-dotenv-plugin/**',
|
|
314
357
|
'node_modules/serverless-kms-grants/**',
|
|
358
|
+
|
|
359
|
+
// Exclude dev dependencies
|
|
315
360
|
'node_modules/@friggframework/test/**',
|
|
316
361
|
'node_modules/@friggframework/eslint-config/**',
|
|
317
362
|
'node_modules/@friggframework/prettier-config/**',
|
|
@@ -320,25 +365,42 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
320
365
|
'node_modules/jest/**',
|
|
321
366
|
'node_modules/prettier/**',
|
|
322
367
|
'node_modules/eslint/**',
|
|
368
|
+
|
|
369
|
+
// Exclude non-essential Frigg core modules
|
|
323
370
|
'node_modules/@friggframework/core/generated/prisma-mongodb/**',
|
|
371
|
+
'node_modules/@friggframework/core/integrations/**',
|
|
324
372
|
'node_modules/@friggframework/core/user/**',
|
|
373
|
+
|
|
374
|
+
// Exclude other handlers we don't need (keep db-migration router)
|
|
375
|
+
'node_modules/@friggframework/core/handlers/routers/auth.js',
|
|
376
|
+
'node_modules/@friggframework/core/handlers/routers/health.js',
|
|
377
|
+
'node_modules/@friggframework/core/handlers/routers/user.js',
|
|
378
|
+
'node_modules/@friggframework/core/handlers/routers/websocket.js',
|
|
379
|
+
'node_modules/@friggframework/core/handlers/routers/integration-*.js',
|
|
380
|
+
'node_modules/@friggframework/core/handlers/workers/**',
|
|
381
|
+
|
|
382
|
+
// Exclude wrong OS binaries
|
|
325
383
|
'**/query-engine-darwin*',
|
|
326
384
|
'**/schema-engine-darwin*',
|
|
327
385
|
'**/libquery_engine-darwin*',
|
|
328
386
|
'**/*-darwin-arm64*',
|
|
329
387
|
'**/*-darwin*',
|
|
388
|
+
|
|
330
389
|
// Router doesn't run migrations - exclude ALL WASM files
|
|
331
390
|
'**/runtime/*.wasm',
|
|
332
391
|
'**/*.wasm*',
|
|
392
|
+
|
|
333
393
|
// Additional size optimizations
|
|
334
394
|
'**/*.map',
|
|
335
395
|
'**/*.md',
|
|
396
|
+
'**/LICENSE*',
|
|
397
|
+
'**/*.d.ts',
|
|
398
|
+
'**/*.d.mts',
|
|
336
399
|
'**/test/**',
|
|
337
400
|
'**/tests/**',
|
|
338
401
|
'**/__tests__/**',
|
|
339
402
|
'**/examples/**',
|
|
340
403
|
'**/docs/**',
|
|
341
|
-
'**/*.d.ts',
|
|
342
404
|
'src/**',
|
|
343
405
|
'test/**',
|
|
344
406
|
'layers/**',
|
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-next.
|
|
4
|
+
"version": "2.0.0-next.47",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-ec2": "^3.835.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.835.0",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@babel/eslint-parser": "^7.18.9",
|
|
13
13
|
"@babel/parser": "^7.25.3",
|
|
14
14
|
"@babel/traverse": "^7.25.3",
|
|
15
|
-
"@friggframework/schemas": "2.0.0-next.
|
|
16
|
-
"@friggframework/test": "2.0.0-next.
|
|
15
|
+
"@friggframework/schemas": "2.0.0-next.47",
|
|
16
|
+
"@friggframework/test": "2.0.0-next.47",
|
|
17
17
|
"@hapi/boom": "^10.0.1",
|
|
18
18
|
"@inquirer/prompts": "^5.3.8",
|
|
19
19
|
"axios": "^1.7.2",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"serverless-http": "^2.7.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@friggframework/eslint-config": "2.0.0-next.
|
|
39
|
-
"@friggframework/prettier-config": "2.0.0-next.
|
|
38
|
+
"@friggframework/eslint-config": "2.0.0-next.47",
|
|
39
|
+
"@friggframework/prettier-config": "2.0.0-next.47",
|
|
40
40
|
"aws-sdk-client-mock": "^4.1.0",
|
|
41
41
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
42
42
|
"jest": "^30.1.3",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "7a7b05dc023f05a6b1c18075064e88f29156fee1"
|
|
72
72
|
}
|