@friggframework/devtools 2.0.0--canary.689.e2b05a4.0 → 2.0.0--canary.704.79d9a63.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.
- package/README.md +14 -0
- package/frigg-cli/README.md +6 -0
- package/frigg-cli/__tests__/unit/dependencies.test.js +3 -5
- package/frigg-cli/__tests__/unit/utils/node-version.test.js +66 -0
- package/frigg-cli/index.js +3 -0
- package/frigg-cli/package.json +3 -3
- package/frigg-cli/utils/node-version.js +51 -0
- package/infrastructure/README.md +20 -0
- package/infrastructure/__tests__/package-patterns-composition.test.js +153 -0
- package/infrastructure/domains/admin-scripts/admin-script-builder.js +50 -46
- package/infrastructure/domains/admin-scripts/admin-script-builder.test.js +46 -7
- package/infrastructure/domains/database/migration-builder.js +182 -175
- package/infrastructure/domains/database/migration-builder.test.js +36 -5
- package/infrastructure/domains/integration/integration-builder.js +65 -61
- package/infrastructure/domains/integration/integration-builder.test.js +73 -8
- package/infrastructure/domains/shared/utilities/base-definition-factory.js +76 -122
- package/infrastructure/domains/shared/utilities/base-definition-factory.test.js +95 -26
- package/infrastructure/domains/shared/utilities/framework-version.js +14 -0
- package/infrastructure/domains/shared/utilities/framework-version.test.js +27 -0
- package/infrastructure/domains/shared/utilities/logging-config.js +3 -4
- package/infrastructure/domains/shared/utilities/logging-config.test.js +1 -2
- package/infrastructure/domains/shared/utilities/package-patterns.js +35 -0
- package/infrastructure/domains/shared/utilities/package-patterns.test.js +112 -0
- package/infrastructure/infrastructure-composer.test.js +3 -3
- package/package.json +11 -8
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
const { InfrastructureBuilder, ValidationResult } = require('../shared/base-builder');
|
|
17
17
|
const { isScopedEnvironmentActive } = require('../shared/function-environments');
|
|
18
18
|
const { nestedNodeModulesExcludes } = require('../shared/utilities/nested-node-modules');
|
|
19
|
+
const { toPackagePatterns } = require('../shared/utilities/package-patterns');
|
|
19
20
|
const { MigrationResourceResolver } = require('./migration-resolver');
|
|
20
21
|
const { createEmptyDiscoveryResult, ResourceOwnership } = require('../shared/types');
|
|
21
22
|
|
|
@@ -242,186 +243,192 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
242
243
|
// Migration WORKER package config (needs Prisma CLI WASM files)
|
|
243
244
|
const migrationWorkerPackageConfig = {
|
|
244
245
|
individually: true,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
246
|
+
// osls 4 only reads package.patterns (ADR-050): excludes first, then includes.
|
|
247
|
+
patterns: toPackagePatterns({
|
|
248
|
+
exclude: [
|
|
249
|
+
// Exclude Prisma runtime client when using Lambda Layer (but keep CLI folder)
|
|
250
|
+
...(usePrismaLayer ? [
|
|
251
|
+
'node_modules/@prisma/client/**',
|
|
252
|
+
'node_modules/.prisma/**',
|
|
253
|
+
'node_modules/@friggframework/core/generated/**',
|
|
254
|
+
] : []),
|
|
255
|
+
// But KEEP node_modules/prisma/** (the CLI with WASM)
|
|
256
|
+
|
|
257
|
+
...nestedNodeModulesExcludes(appDefinition, usePrismaLayer),
|
|
258
|
+
|
|
259
|
+
// Exclude AWS SDK (provided by Lambda runtime)
|
|
260
|
+
'node_modules/aws-sdk/**',
|
|
261
|
+
'node_modules/@aws-sdk/**',
|
|
262
|
+
|
|
263
|
+
// Exclude build tools
|
|
264
|
+
'node_modules/esbuild/**',
|
|
265
|
+
'node_modules/@esbuild/**',
|
|
266
|
+
'node_modules/typescript/**',
|
|
267
|
+
'node_modules/webpack/**',
|
|
268
|
+
'node_modules/osls/**',
|
|
269
|
+
'node_modules/serverless-esbuild/**',
|
|
270
|
+
'node_modules/serverless-jetpack/**',
|
|
271
|
+
'node_modules/serverless-offline/**',
|
|
272
|
+
'node_modules/serverless-offline-sqs/**',
|
|
273
|
+
'node_modules/serverless-dotenv-plugin/**',
|
|
274
|
+
'node_modules/serverless-kms-grants/**',
|
|
275
|
+
|
|
276
|
+
// Exclude dev dependencies
|
|
277
|
+
'node_modules/@friggframework/test/**',
|
|
278
|
+
'node_modules/@friggframework/eslint-config/**',
|
|
279
|
+
'node_modules/@friggframework/prettier-config/**',
|
|
280
|
+
'node_modules/@friggframework/devtools/**',
|
|
281
|
+
'node_modules/@friggframework/serverless-plugin/**',
|
|
282
|
+
'node_modules/jest/**',
|
|
283
|
+
'node_modules/prettier/**',
|
|
284
|
+
'node_modules/eslint/**',
|
|
285
|
+
|
|
286
|
+
// Exclude non-essential Frigg core modules
|
|
287
|
+
'node_modules/@friggframework/core/generated/prisma-mongodb/**',
|
|
288
|
+
'node_modules/@friggframework/core/integrations/**',
|
|
289
|
+
'node_modules/@friggframework/core/user/**',
|
|
290
|
+
|
|
291
|
+
// Exclude other handlers we don't need (keep db-migration worker)
|
|
292
|
+
'node_modules/@friggframework/core/handlers/routers/auth.js',
|
|
293
|
+
'node_modules/@friggframework/core/handlers/routers/health.js',
|
|
294
|
+
'node_modules/@friggframework/core/handlers/routers/user.js',
|
|
295
|
+
'node_modules/@friggframework/core/handlers/routers/websocket.js',
|
|
296
|
+
'node_modules/@friggframework/core/handlers/routers/integration-*.js',
|
|
297
|
+
'node_modules/@friggframework/core/handlers/workers/integration-*.js',
|
|
298
|
+
|
|
299
|
+
// Exclude wrong OS binaries
|
|
300
|
+
'**/query-engine-darwin*',
|
|
301
|
+
'**/schema-engine-darwin*',
|
|
302
|
+
'**/libquery_engine-darwin*',
|
|
303
|
+
'**/*-darwin-arm64*',
|
|
304
|
+
'**/*-darwin*',
|
|
305
|
+
|
|
306
|
+
// Migration worker DOES need Prisma CLI WASM files (for migrate deploy)
|
|
307
|
+
// Only exclude runtime engine WASM (query engine internals)
|
|
308
|
+
'**/runtime/*.wasm',
|
|
309
|
+
|
|
310
|
+
// Additional size optimizations
|
|
311
|
+
'**/*.map',
|
|
312
|
+
'**/*.md',
|
|
313
|
+
'**/LICENSE*',
|
|
314
|
+
'**/*.d.ts',
|
|
315
|
+
'**/*.d.mts',
|
|
316
|
+
'**/examples/**',
|
|
317
|
+
'**/docs/**',
|
|
318
|
+
'src/**',
|
|
319
|
+
'test/**',
|
|
320
|
+
'layers/**',
|
|
321
|
+
'coverage/**',
|
|
322
|
+
'deploy.log',
|
|
323
|
+
'.env.backup',
|
|
324
|
+
'docker-compose.yml',
|
|
325
|
+
'jest.config.js',
|
|
326
|
+
'jest.unit.config.js',
|
|
327
|
+
'package-lock.json',
|
|
328
|
+
'**/*.test.js',
|
|
329
|
+
'**/*.spec.js',
|
|
330
|
+
'**/.claude-flow/**',
|
|
331
|
+
'**/.swarm/**',
|
|
332
|
+
],
|
|
333
|
+
}),
|
|
330
334
|
};
|
|
331
335
|
|
|
332
336
|
// Migration ROUTER package config (lighter, no Prisma CLI needed)
|
|
333
337
|
const migrationRouterPackageConfig = {
|
|
334
338
|
individually: true,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
339
|
+
// osls 4 only reads package.patterns (ADR-050): excludes first, then includes.
|
|
340
|
+
patterns: toPackagePatterns({
|
|
341
|
+
exclude: [
|
|
342
|
+
// Exclude Prisma runtime client when using Lambda Layer
|
|
343
|
+
...(usePrismaLayer ? [
|
|
344
|
+
'node_modules/@prisma/client/**',
|
|
345
|
+
'node_modules/.prisma/**',
|
|
346
|
+
'node_modules/@friggframework/core/generated/**',
|
|
347
|
+
] : []),
|
|
348
|
+
|
|
349
|
+
// Router only skips Prisma CLI if Lambda Layer is enabled
|
|
350
|
+
...(usePrismaLayer ? ['node_modules/prisma/**'] : []),
|
|
351
|
+
|
|
352
|
+
...nestedNodeModulesExcludes(appDefinition, usePrismaLayer),
|
|
353
|
+
|
|
354
|
+
// Exclude AWS SDK (provided by Lambda runtime)
|
|
355
|
+
'node_modules/aws-sdk/**',
|
|
356
|
+
'node_modules/@aws-sdk/**',
|
|
357
|
+
|
|
358
|
+
// Exclude build tools
|
|
359
|
+
'node_modules/esbuild/**',
|
|
360
|
+
'node_modules/@esbuild/**',
|
|
361
|
+
'node_modules/typescript/**',
|
|
362
|
+
'node_modules/webpack/**',
|
|
363
|
+
'node_modules/osls/**',
|
|
364
|
+
'node_modules/serverless-esbuild/**',
|
|
365
|
+
'node_modules/serverless-jetpack/**',
|
|
366
|
+
'node_modules/serverless-offline/**',
|
|
367
|
+
'node_modules/serverless-offline-sqs/**',
|
|
368
|
+
'node_modules/serverless-dotenv-plugin/**',
|
|
369
|
+
'node_modules/serverless-kms-grants/**',
|
|
370
|
+
|
|
371
|
+
// Exclude dev dependencies
|
|
372
|
+
'node_modules/@friggframework/test/**',
|
|
373
|
+
'node_modules/@friggframework/eslint-config/**',
|
|
374
|
+
'node_modules/@friggframework/prettier-config/**',
|
|
375
|
+
'node_modules/@friggframework/devtools/**',
|
|
376
|
+
'node_modules/@friggframework/serverless-plugin/**',
|
|
377
|
+
'node_modules/jest/**',
|
|
378
|
+
'node_modules/prettier/**',
|
|
379
|
+
'node_modules/eslint/**',
|
|
380
|
+
|
|
381
|
+
// Exclude non-essential Frigg core modules
|
|
382
|
+
'node_modules/@friggframework/core/generated/prisma-mongodb/**',
|
|
383
|
+
'node_modules/@friggframework/core/integrations/**',
|
|
384
|
+
'node_modules/@friggframework/core/user/**',
|
|
385
|
+
|
|
386
|
+
// Exclude other handlers we don't need (keep db-migration router)
|
|
387
|
+
'node_modules/@friggframework/core/handlers/routers/auth.js',
|
|
388
|
+
'node_modules/@friggframework/core/handlers/routers/health.js',
|
|
389
|
+
'node_modules/@friggframework/core/handlers/routers/user.js',
|
|
390
|
+
'node_modules/@friggframework/core/handlers/routers/websocket.js',
|
|
391
|
+
'node_modules/@friggframework/core/handlers/routers/integration-*.js',
|
|
392
|
+
'node_modules/@friggframework/core/handlers/workers/**',
|
|
393
|
+
|
|
394
|
+
// Exclude wrong OS binaries
|
|
395
|
+
'**/query-engine-darwin*',
|
|
396
|
+
'**/schema-engine-darwin*',
|
|
397
|
+
'**/libquery_engine-darwin*',
|
|
398
|
+
'**/*-darwin-arm64*',
|
|
399
|
+
'**/*-darwin*',
|
|
400
|
+
|
|
401
|
+
// Router doesn't run migrations - exclude ALL WASM files
|
|
402
|
+
'**/runtime/*.wasm',
|
|
403
|
+
'**/*.wasm*',
|
|
404
|
+
|
|
405
|
+
// Additional size optimizations
|
|
406
|
+
'**/*.map',
|
|
407
|
+
'**/*.md',
|
|
408
|
+
'**/LICENSE*',
|
|
409
|
+
'**/*.d.ts',
|
|
410
|
+
'**/*.d.mts',
|
|
411
|
+
'**/test/**',
|
|
412
|
+
'**/tests/**',
|
|
413
|
+
'**/__tests__/**',
|
|
414
|
+
'**/examples/**',
|
|
415
|
+
'**/docs/**',
|
|
416
|
+
'src/**',
|
|
417
|
+
'test/**',
|
|
418
|
+
'layers/**',
|
|
419
|
+
'coverage/**',
|
|
420
|
+
'deploy.log',
|
|
421
|
+
'.env.backup',
|
|
422
|
+
'docker-compose.yml',
|
|
423
|
+
'jest.config.js',
|
|
424
|
+
'jest.unit.config.js',
|
|
425
|
+
'package-lock.json',
|
|
426
|
+
'**/*.test.js',
|
|
427
|
+
'**/*.spec.js',
|
|
428
|
+
'**/.claude-flow/**',
|
|
429
|
+
'**/.swarm/**',
|
|
430
|
+
],
|
|
431
|
+
}),
|
|
425
432
|
};
|
|
426
433
|
|
|
427
434
|
// Create migration worker Lambda (triggered by SQS)
|
|
@@ -316,8 +316,8 @@ describe('MigrationBuilder', () => {
|
|
|
316
316
|
it('bundles Prisma runtime when layer disabled', async () => {
|
|
317
317
|
const appDef = { ...baseAppDefinition, usePrismaLambdaLayer: false };
|
|
318
318
|
const result = await builder.build(appDef, {});
|
|
319
|
-
expect(result.functions.dbMigrationWorker.package.
|
|
320
|
-
expect.arrayContaining(['node_modules/@prisma/client/**'])
|
|
319
|
+
expect(result.functions.dbMigrationWorker.package.patterns).not.toEqual(
|
|
320
|
+
expect.arrayContaining(['!node_modules/@prisma/client/**'])
|
|
321
321
|
);
|
|
322
322
|
});
|
|
323
323
|
});
|
|
@@ -436,7 +436,7 @@ describe('MigrationBuilder nested node_modules (lambda.keepNestedNodeModules)',
|
|
|
436
436
|
const result = await new MigrationBuilder().build(baseAppDefinition, {});
|
|
437
437
|
|
|
438
438
|
for (const fn of workerAndRouter(result)) {
|
|
439
|
-
expect(fn.package.
|
|
439
|
+
expect(fn.package.patterns).toContain('!node_modules/**/node_modules/**');
|
|
440
440
|
}
|
|
441
441
|
});
|
|
442
442
|
|
|
@@ -447,8 +447,39 @@ describe('MigrationBuilder nested node_modules (lambda.keepNestedNodeModules)',
|
|
|
447
447
|
);
|
|
448
448
|
|
|
449
449
|
for (const fn of workerAndRouter(result)) {
|
|
450
|
-
expect(fn.package.
|
|
451
|
-
expect(fn.package.
|
|
450
|
+
expect(fn.package.patterns).not.toContain('!node_modules/**/node_modules/**');
|
|
451
|
+
expect(fn.package.patterns).toContain('!node_modules/**/node_modules/@friggframework/**');
|
|
452
452
|
}
|
|
453
453
|
});
|
|
454
454
|
});
|
|
455
|
+
|
|
456
|
+
describe('MigrationBuilder function package patterns (ADR-050)', () => {
|
|
457
|
+
it('emits package.patterns and individually, never include/exclude', async () => {
|
|
458
|
+
const result = await new MigrationBuilder().build(
|
|
459
|
+
{ database: { postgres: { enable: true } } },
|
|
460
|
+
{}
|
|
461
|
+
);
|
|
462
|
+
|
|
463
|
+
for (const name of ['dbMigrationWorker', 'dbMigrationRouter']) {
|
|
464
|
+
const pkg = result.functions[name].package;
|
|
465
|
+
expect(pkg.individually).toBe(true);
|
|
466
|
+
expect(pkg).not.toHaveProperty('include');
|
|
467
|
+
expect(pkg).not.toHaveProperty('exclude');
|
|
468
|
+
expect(pkg.patterns.every((p) => p.startsWith('!'))).toBe(true);
|
|
469
|
+
expect(pkg.patterns).toEqual(
|
|
470
|
+
expect.arrayContaining([
|
|
471
|
+
'!node_modules/@prisma/client/**',
|
|
472
|
+
'!node_modules/aws-sdk/**',
|
|
473
|
+
])
|
|
474
|
+
);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// The worker keeps the Prisma CLI (WASM); only the router drops it.
|
|
478
|
+
expect(result.functions.dbMigrationWorker.package.patterns).not.toContain(
|
|
479
|
+
'!node_modules/prisma/**'
|
|
480
|
+
);
|
|
481
|
+
expect(result.functions.dbMigrationRouter.package.patterns).toContain(
|
|
482
|
+
'!node_modules/prisma/**'
|
|
483
|
+
);
|
|
484
|
+
});
|
|
485
|
+
});
|
|
@@ -20,6 +20,7 @@ const {
|
|
|
20
20
|
ValidationResult,
|
|
21
21
|
} = require('../shared/base-builder');
|
|
22
22
|
const IntegrationResourceResolver = require('./integration-resolver');
|
|
23
|
+
const { toPackagePatterns } = require('../shared/utilities/package-patterns');
|
|
23
24
|
const {
|
|
24
25
|
createEmptyDiscoveryResult,
|
|
25
26
|
ResourceOwnership,
|
|
@@ -254,67 +255,70 @@ class IntegrationBuilder extends InfrastructureBuilder {
|
|
|
254
255
|
*/
|
|
255
256
|
createFunctionPackageConfig(usePrismaLayer = true, appDefinition = {}) {
|
|
256
257
|
return {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
258
|
+
// osls 4 only reads package.patterns (ADR-050): excludes first, then includes.
|
|
259
|
+
patterns: toPackagePatterns({
|
|
260
|
+
exclude: [
|
|
261
|
+
// Exclude AWS SDK (provided by Lambda runtime)
|
|
262
|
+
'node_modules/aws-sdk/**',
|
|
263
|
+
'node_modules/@aws-sdk/**',
|
|
264
|
+
|
|
265
|
+
// Exclude Prisma (provided via Lambda Layer)
|
|
266
|
+
...(usePrismaLayer
|
|
267
|
+
? [
|
|
268
|
+
'node_modules/@prisma/**',
|
|
269
|
+
'node_modules/.prisma/**',
|
|
270
|
+
'node_modules/prisma/**',
|
|
271
|
+
'node_modules/@friggframework/core/generated/**',
|
|
272
|
+
]
|
|
273
|
+
: []),
|
|
274
|
+
|
|
275
|
+
...nestedNodeModulesExcludes(appDefinition, usePrismaLayer),
|
|
276
|
+
|
|
277
|
+
// Exclude build tools (not needed at runtime)
|
|
278
|
+
'node_modules/esbuild/**',
|
|
279
|
+
'node_modules/@esbuild/**',
|
|
280
|
+
'node_modules/typescript/**',
|
|
281
|
+
'node_modules/webpack/**',
|
|
282
|
+
'node_modules/osls/**',
|
|
283
|
+
'node_modules/serverless-esbuild/**',
|
|
284
|
+
'node_modules/serverless-jetpack/**',
|
|
285
|
+
'node_modules/serverless-offline/**',
|
|
286
|
+
'node_modules/serverless-offline-sqs/**',
|
|
287
|
+
'node_modules/serverless-dotenv-plugin/**',
|
|
288
|
+
'node_modules/serverless-kms-grants/**',
|
|
289
|
+
// Note: DO NOT exclude serverless-http - it's a runtime dependency!
|
|
290
|
+
|
|
291
|
+
// Exclude dev/test dependencies
|
|
292
|
+
'node_modules/@friggframework/test/**',
|
|
293
|
+
'node_modules/@friggframework/eslint-config/**',
|
|
294
|
+
'node_modules/@friggframework/prettier-config/**',
|
|
295
|
+
'node_modules/jest/**',
|
|
296
|
+
'node_modules/prettier/**',
|
|
297
|
+
'node_modules/eslint/**',
|
|
298
|
+
|
|
299
|
+
// Exclude local dev files
|
|
300
|
+
'deploy.log',
|
|
301
|
+
'.env.backup',
|
|
302
|
+
'docker-compose.yml',
|
|
303
|
+
'jest.config.js',
|
|
304
|
+
'jest.unit.config.js',
|
|
305
|
+
'.eslintrc.json',
|
|
306
|
+
'.prettierrc',
|
|
307
|
+
'.prettierignore',
|
|
308
|
+
'.markdownlintignore',
|
|
309
|
+
'package-lock.json',
|
|
310
|
+
|
|
311
|
+
// Exclude development/test files (keep src/ - needed for integrations and api-modules)
|
|
312
|
+
'coverage/**',
|
|
313
|
+
'test/**',
|
|
314
|
+
'layers/**',
|
|
315
|
+
// Note: DO NOT exclude src/** - handlers need src/integrations and src/api-modules at runtime
|
|
316
|
+
'**/*.test.js',
|
|
317
|
+
'**/*.spec.js',
|
|
318
|
+
'**/.claude-flow/**',
|
|
319
|
+
'**/.swarm/**',
|
|
320
|
+
],
|
|
321
|
+
}),
|
|
318
322
|
};
|
|
319
323
|
}
|
|
320
324
|
|