@lafken/main 0.10.6 → 0.11.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/lib/app/app.js
CHANGED
|
@@ -19,6 +19,7 @@ class AppStack extends cdktn_1.TerraformStack {
|
|
|
19
19
|
contextName: resolver_1.ContextName.app,
|
|
20
20
|
globalConfig: props.globalConfig?.lambda,
|
|
21
21
|
contextCreator: props.name,
|
|
22
|
+
minify: props.globalConfig?.minify,
|
|
22
23
|
});
|
|
23
24
|
new provider_1.AwsProvider(this, 'AWS', props.awsProviderConfig);
|
|
24
25
|
if (props.s3Backend) {
|
package/lib/app/app.types.d.ts
CHANGED
|
@@ -36,6 +36,15 @@ export interface GlobalConfig {
|
|
|
36
36
|
* the resource-specific tags will override the global values.
|
|
37
37
|
*/
|
|
38
38
|
tags?: Record<string, string>;
|
|
39
|
+
/**
|
|
40
|
+
* Enables minification for all Lambda function bundles.
|
|
41
|
+
*
|
|
42
|
+
* When set to `true`, the bundled Lambda code will be minified
|
|
43
|
+
* to reduce deployment package size and improve cold start times.
|
|
44
|
+
*
|
|
45
|
+
* @default undefined
|
|
46
|
+
*/
|
|
47
|
+
minify?: boolean;
|
|
39
48
|
}
|
|
40
49
|
export interface CreateAppProps {
|
|
41
50
|
/**
|
package/lib/aspect/aspect.js
CHANGED
|
@@ -46,7 +46,7 @@ class AppAspect {
|
|
|
46
46
|
}
|
|
47
47
|
this.vpcConfig =
|
|
48
48
|
typeof this.props.vpc === 'function'
|
|
49
|
-
? this.props.vpc((0, resolver_1.
|
|
49
|
+
? this.props.vpc((0, resolver_1.getExternalValues)(this.scope))
|
|
50
50
|
: this.props.vpc;
|
|
51
51
|
}
|
|
52
52
|
addEnvironmentValues(node) {
|
package/lib/context/context.js
CHANGED
package/lib/module/module.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lafken/main",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Lafken core engine - orchestrate AWS serverless infrastructure using decorators with automatic CDKTN code generation",
|
|
6
6
|
"keywords": [
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"reflect-metadata": "^0.2.2",
|
|
33
|
-
"@lafken/resolver": "0.
|
|
33
|
+
"@lafken/resolver": "0.11.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@cdktn/provider-aws": "^23.5.0",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"constructs": "^10.6.0",
|
|
40
40
|
"typescript": "6.0.2",
|
|
41
41
|
"vitest": "^4.1.2",
|
|
42
|
-
"@lafken/common": "0.
|
|
42
|
+
"@lafken/common": "0.11.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@cdktn/provider-aws": ">=23.0.0",
|
|
46
46
|
"cdktn": ">=0.22.0",
|
|
47
47
|
"constructs": "^10.4.5",
|
|
48
|
-
"@lafken/common": "0.
|
|
48
|
+
"@lafken/common": "0.11.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=20.19"
|