@friggframework/devtools 2.0.0--canary.454.348aedf.0 → 2.0.0--canary.454.d9f69b3.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.
@@ -524,7 +524,28 @@ const createBaseDefinition = (AppDefinition, appEnvironmentVars, discoveredResou
524
524
  service: AppDefinition.name || 'create-frigg-app',
525
525
  package: {
526
526
  individually: true,
527
- exclude: ['!**/node_modules/aws-sdk/**', '!**/node_modules/@aws-sdk/**', '!package.json'],
527
+ patterns: [
528
+ // Existing AWS SDK exclusions
529
+ '!**/node_modules/aws-sdk/**',
530
+ '!**/node_modules/@aws-sdk/**',
531
+ '!package.json',
532
+
533
+ // Exclude non-Lambda Prisma engine binaries (keep only rhel-openssl)
534
+ // Note: Don't use wildcards - they prevent re-inclusion in function-specific patterns
535
+ '!node_modules/.prisma/client/libquery_engine-darwin*',
536
+ '!node_modules/.prisma/client/libquery_engine-debian*',
537
+ '!node_modules/.prisma/client/libquery_engine-linux-*',
538
+ '!node_modules/.prisma/client/libquery_engine-windows*',
539
+ '!node_modules/@prisma-mongodb/client/libquery_engine-darwin*',
540
+ '!node_modules/@prisma-mongodb/client/libquery_engine-debian*',
541
+ '!node_modules/@prisma-mongodb/client/libquery_engine-linux-*',
542
+ '!node_modules/@prisma-mongodb/client/libquery_engine-windows*',
543
+ '!node_modules/@prisma-postgresql/client/libquery_engine-darwin*',
544
+ '!node_modules/@prisma-postgresql/client/libquery_engine-debian*',
545
+ '!node_modules/@prisma-postgresql/client/libquery_engine-linux-*',
546
+ '!node_modules/@prisma-postgresql/client/libquery_engine-windows*',
547
+ // rhel-openssl binaries are kept (not excluded)
548
+ ],
528
549
  },
529
550
  useDotenv: true,
530
551
  provider: {
@@ -601,10 +622,24 @@ const createBaseDefinition = (AppDefinition, appEnvironmentVars, discoveredResou
601
622
  { httpApi: { path: '/api/integrations/{proxy+}', method: 'ANY' } },
602
623
  { httpApi: { path: '/api/authorize', method: 'ANY' } },
603
624
  ],
625
+ // Exclude Prisma CLI - not needed for auth endpoints
626
+ package: {
627
+ patterns: [
628
+ '!node_modules/prisma/**',
629
+ '!node_modules/@prisma/engines/**',
630
+ ],
631
+ },
604
632
  },
605
633
  user: {
606
634
  handler: 'node_modules/@friggframework/core/handlers/routers/user.handler',
607
635
  events: [{ httpApi: { path: '/user/{proxy+}', method: 'ANY' } }],
636
+ // Exclude Prisma CLI - not needed for user endpoints
637
+ package: {
638
+ patterns: [
639
+ '!node_modules/prisma/**',
640
+ '!node_modules/@prisma/engines/**',
641
+ ],
642
+ },
608
643
  },
609
644
  health: {
610
645
  handler: 'node_modules/@friggframework/core/handlers/routers/health.handler',
@@ -612,6 +647,13 @@ const createBaseDefinition = (AppDefinition, appEnvironmentVars, discoveredResou
612
647
  { httpApi: { path: '/health', method: 'GET' } },
613
648
  { httpApi: { path: '/health/{proxy+}', method: 'GET' } },
614
649
  ],
650
+ // Exclude Prisma CLI - not needed for health checks
651
+ package: {
652
+ patterns: [
653
+ '!node_modules/prisma/**',
654
+ '!node_modules/@prisma/engines/**',
655
+ ],
656
+ },
615
657
  },
616
658
  dbMigrate: {
617
659
  handler: 'node_modules/@friggframework/core/handlers/workers/db-migration.handler',
@@ -626,6 +668,30 @@ const createBaseDefinition = (AppDefinition, appEnvironmentVars, discoveredResou
626
668
  Purpose: 'DatabaseMigration',
627
669
  ManagedBy: 'Frigg',
628
670
  },
671
+ // Environment variables for non-interactive Prisma CLI operation
672
+ environment: {
673
+ CI: '1', // Forces Prisma to non-interactive mode
674
+ PRISMA_HIDE_UPDATE_MESSAGE: '1', // Suppress update messages
675
+ PRISMA_MIGRATE_SKIP_SEED: '1', // Skip seeding during migrations
676
+ },
677
+ // Function-specific packaging: Include Prisma CLI for this function only
678
+ package: {
679
+ patterns: [
680
+ // Include Prisma CLI (required for prisma generate, migrate, db push)
681
+ 'node_modules/prisma/**',
682
+ 'node_modules/@prisma/engines/libquery_engine-rhel-*',
683
+ 'node_modules/@prisma/engines/schema-engine-rhel-*',
684
+ 'node_modules/@prisma/engines/migration-engine-rhel-*',
685
+
686
+ // Include Prisma schemas from @friggframework/core
687
+ 'node_modules/@friggframework/core/prisma-mongodb/**',
688
+ 'node_modules/@friggframework/core/prisma-postgresql/**',
689
+
690
+ // Include generated Prisma clients
691
+ 'node_modules/@prisma-mongodb/client/**',
692
+ 'node_modules/@prisma-postgresql/client/**',
693
+ ],
694
+ },
629
695
  },
630
696
  },
631
697
  resources: {
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.454.348aedf.0",
4
+ "version": "2.0.0--canary.454.d9f69b3.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.454.348aedf.0",
15
- "@friggframework/test": "2.0.0--canary.454.348aedf.0",
14
+ "@friggframework/schemas": "2.0.0--canary.454.d9f69b3.0",
15
+ "@friggframework/test": "2.0.0--canary.454.d9f69b3.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.454.348aedf.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.454.348aedf.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.454.d9f69b3.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.454.d9f69b3.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": "348aedf958a65602ee121102e589901743c36e7b"
73
+ "gitHead": "d9f69b3fae85750ace618986d32b3eb1ab0e2e56"
74
74
  }