@friggframework/devtools 2.0.0--canary.474.edb48ba.0 → 2.0.0--canary.482.411f36e.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/docs/PRE-DEPLOYMENT-HEALTH-CHECK-SPEC.md +1317 -0
- package/infrastructure/domains/database/migration-builder.js +64 -2
- package/infrastructure/domains/shared/resource-discovery.enhanced.test.js +306 -0
- package/infrastructure/domains/shared/resource-discovery.js +31 -2
- package/infrastructure/domains/shared/utilities/prisma-layer-manager.js +55 -5
- package/infrastructure/domains/shared/utilities/prisma-layer-manager.test.js +154 -4
- package/infrastructure/domains/shared/validation/plugin-validator.js +187 -0
- package/infrastructure/domains/shared/validation/plugin-validator.test.js +323 -0
- package/infrastructure/infrastructure-composer.js +22 -0
- package/package.json +6 -6
|
@@ -21,6 +21,7 @@ const { IntegrationBuilder } = require('./domains/integration/integration-builde
|
|
|
21
21
|
const { modifyHandlerPaths } = require('./domains/shared/utilities/handler-path-resolver');
|
|
22
22
|
const { createBaseDefinition } = require('./domains/shared/utilities/base-definition-factory');
|
|
23
23
|
const { ensurePrismaLayerExists } = require('./domains/shared/utilities/prisma-layer-manager');
|
|
24
|
+
const { validateAndCleanPlugins, validatePackagingConfiguration } = require('./domains/shared/validation/plugin-validator');
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Compose serverless definition using domain builders
|
|
@@ -76,6 +77,27 @@ const composeServerlessDefinition = async (AppDefinition) => {
|
|
|
76
77
|
|
|
77
78
|
Object.assign(definition.custom, merged.custom);
|
|
78
79
|
|
|
80
|
+
// Validate and clean plugins (detect conflicts, auto-fix if needed)
|
|
81
|
+
const pluginValidation = validateAndCleanPlugins(definition.plugins, {
|
|
82
|
+
autoFix: true,
|
|
83
|
+
silent: false,
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
if (pluginValidation.modified) {
|
|
87
|
+
definition.plugins = pluginValidation.plugins;
|
|
88
|
+
console.log(' ✓ Plugin configuration auto-fixed');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Validate packaging configuration
|
|
92
|
+
const packagingValidation = validatePackagingConfiguration(definition);
|
|
93
|
+
if (!packagingValidation.valid) {
|
|
94
|
+
console.warn('⚠️ Packaging configuration issues detected:');
|
|
95
|
+
packagingValidation.errors.forEach(err => console.warn(` ✗ ${err}`));
|
|
96
|
+
}
|
|
97
|
+
if (packagingValidation.warnings.length > 0) {
|
|
98
|
+
packagingValidation.warnings.forEach(warn => console.warn(` ℹ ${warn}`));
|
|
99
|
+
}
|
|
100
|
+
|
|
79
101
|
// Modify handler paths for offline mode
|
|
80
102
|
definition.functions = modifyHandlerPaths(definition.functions);
|
|
81
103
|
|
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.
|
|
4
|
+
"version": "2.0.0--canary.482.411f36e.0",
|
|
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--canary.
|
|
16
|
-
"@friggframework/test": "2.0.0--canary.
|
|
15
|
+
"@friggframework/schemas": "2.0.0--canary.482.411f36e.0",
|
|
16
|
+
"@friggframework/test": "2.0.0--canary.482.411f36e.0",
|
|
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--canary.
|
|
39
|
-
"@friggframework/prettier-config": "2.0.0--canary.
|
|
38
|
+
"@friggframework/eslint-config": "2.0.0--canary.482.411f36e.0",
|
|
39
|
+
"@friggframework/prettier-config": "2.0.0--canary.482.411f36e.0",
|
|
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": "411f36e107a200d437a085479c514d7bd9fd981d"
|
|
72
72
|
}
|