@friggframework/devtools 2.0.0--canary.461.0b53aff.0 → 2.0.0--canary.461.419b22c.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/infrastructure/domains/database/aurora-builder.js +2 -2
- package/infrastructure/domains/database/aurora-builder.test.js +2 -2
- package/infrastructure/domains/database/aurora-discovery.js +1 -1
- package/infrastructure/domains/networking/vpc-builder.test.js +1 -1
- package/infrastructure/scripts/build-prisma-layer.js +2 -2
- package/package.json +6 -6
|
@@ -30,7 +30,7 @@ class AuroraBuilder extends InfrastructureBuilder {
|
|
|
30
30
|
if (process.env.FRIGG_SKIP_AWS_DISCOVERY === 'true') {
|
|
31
31
|
return false;
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
return appDefinition.database?.postgres?.enable === true;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -267,7 +267,7 @@ class AuroraBuilder extends InfrastructureBuilder {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
console.log(` ✅ Using discovered Aurora cluster: ${discoveredResources.auroraClusterEndpoint}`);
|
|
270
|
-
|
|
270
|
+
|
|
271
271
|
// Use discovered cluster details
|
|
272
272
|
result.environment.DATABASE_HOST = discoveredResources.auroraClusterEndpoint;
|
|
273
273
|
result.environment.DATABASE_PORT = String(discoveredResources.auroraPort || 5432);
|
|
@@ -58,7 +58,7 @@ describe('AuroraBuilder', () => {
|
|
|
58
58
|
|
|
59
59
|
it('should return false when FRIGG_SKIP_AWS_DISCOVERY is set (local mode)', () => {
|
|
60
60
|
process.env.FRIGG_SKIP_AWS_DISCOVERY = 'true';
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
const appDefinition = {
|
|
63
63
|
database: {
|
|
64
64
|
postgres: { enable: true },
|
|
@@ -70,7 +70,7 @@ describe('AuroraBuilder', () => {
|
|
|
70
70
|
|
|
71
71
|
it('should return true when FRIGG_SKIP_AWS_DISCOVERY is not set and Postgres is enabled', () => {
|
|
72
72
|
delete process.env.FRIGG_SKIP_AWS_DISCOVERY;
|
|
73
|
-
|
|
73
|
+
|
|
74
74
|
const appDefinition = {
|
|
75
75
|
database: {
|
|
76
76
|
postgres: { enable: true },
|
|
@@ -49,7 +49,7 @@ class AuroraDiscovery {
|
|
|
49
49
|
result.databasePort = rawResources.port || 5432;
|
|
50
50
|
result.auroraEngine = rawResources.engine || 'aurora-postgresql';
|
|
51
51
|
result.databaseEngine = rawResources.engine || 'aurora-postgresql';
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
// Capture security group IDs
|
|
54
54
|
if (rawResources.securityGroupIds && rawResources.securityGroupIds.length > 0) {
|
|
55
55
|
result.auroraSecurityGroupId = rawResources.securityGroupIds[0]; // Use first security group
|
|
@@ -644,7 +644,7 @@ describe('VpcBuilder', () => {
|
|
|
644
644
|
};
|
|
645
645
|
|
|
646
646
|
const result = await vpcBuilder.build(appDefinition, discoveredResources);
|
|
647
|
-
|
|
647
|
+
|
|
648
648
|
// Should create new NAT Gateway instead of using the misplaced one
|
|
649
649
|
expect(result.resources.FriggNATGateway).toBeDefined();
|
|
650
650
|
expect(result.resources.FriggNATGateway.Type).toBe('AWS::EC2::NatGateway');
|
|
@@ -218,7 +218,7 @@ async function installPrismaPackages() {
|
|
|
218
218
|
...process.env,
|
|
219
219
|
PRISMA_CLI_BINARY_TARGETS: 'rhel-openssl-3.0.x',
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
|
|
222
222
|
execSync('npm install --omit=dev --no-package-lock', {
|
|
223
223
|
cwd: path.join(LAYER_OUTPUT_PATH, 'nodejs'),
|
|
224
224
|
stdio: 'inherit',
|
|
@@ -443,7 +443,7 @@ async function verifyLayerStructure() {
|
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
logSuccess('All required runtime files present');
|
|
446
|
-
|
|
446
|
+
|
|
447
447
|
// Verify CLI is NOT present
|
|
448
448
|
for (const forbiddenPath of forbiddenPaths) {
|
|
449
449
|
const fullPath = path.join(LAYER_NODE_MODULES, forbiddenPath);
|
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.419b22c.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.419b22c.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.419b22c.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.419b22c.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.419b22c.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": "419b22cafd38631e39efb165682ec225f2b0186c"
|
|
74
74
|
}
|