@swarmion/serverless-helpers
Advanced tools
Comparing version 0.20.1 to 0.20.2
@@ -37,2 +37,3 @@ "use strict"; | ||
mergeStageParams: () => mergeStageParams, | ||
swarmionCdkEsbuildConfig: () => swarmionCdkEsbuildConfig, | ||
swarmionEsbuildConfig: () => swarmionEsbuildConfig, | ||
@@ -193,2 +194,8 @@ testFunctionNames: () => testFunctionNames | ||
}; | ||
var swarmionCdkEsbuildConfig = { | ||
minify: true, | ||
keepNames: true, | ||
sourceMap: true, | ||
mainFields: ["module", "main"] | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -204,4 +211,5 @@ 0 && (module.exports = { | ||
mergeStageParams, | ||
swarmionCdkEsbuildConfig, | ||
swarmionEsbuildConfig, | ||
testFunctionNames | ||
}); |
@@ -151,2 +151,8 @@ // src/helpers/applyHttpMiddlewares.ts | ||
}; | ||
var swarmionCdkEsbuildConfig = { | ||
minify: true, | ||
keepNames: true, | ||
sourceMap: true, | ||
mainFields: ["module", "main"] | ||
}; | ||
export { | ||
@@ -161,4 +167,5 @@ applyHttpMiddlewares, | ||
mergeStageParams, | ||
swarmionCdkEsbuildConfig, | ||
swarmionEsbuildConfig, | ||
testFunctionNames | ||
}; |
@@ -0,1 +1,2 @@ | ||
import type { BundlingOptions } from 'aws-cdk-lib/aws-lambda-nodejs'; | ||
import type { BuildOptions } from 'esbuild'; | ||
@@ -25,3 +26,10 @@ type EsbuildOptions = Omit<BuildOptions, 'watch'>; | ||
export declare const swarmionEsbuildConfig: SwarmionEsbuildConfig; | ||
/** | ||
* the recommended CDK esbuild configuration for Swarmion. | ||
* | ||
* - `target` is inferred from the construct runtime | ||
* - `exclude` is already default depending on the runtime | ||
*/ | ||
export declare const swarmionCdkEsbuildConfig: BundlingOptions; | ||
export {}; | ||
//# sourceMappingURL=esbuildConfig.d.ts.map |
{ | ||
"name": "@swarmion/serverless-helpers", | ||
"description": "A set of helpers for Serverless applications", | ||
"version": "0.20.1", | ||
"version": "0.20.2", | ||
"license": "MIT", | ||
@@ -46,2 +46,3 @@ "homepage": "https://www.swarmion.dev", | ||
"@serverless/typescript": "^3.25.0", | ||
"aws-cdk-lib": "^2.60.0", | ||
"json-schema-to-ts": "^2.6.2" | ||
@@ -66,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "24006b8301a6e08cc343e33e9e8de52b7404575a" | ||
"gitHead": "a460dda9c759f24f4ced2a8c0eae715f9b3bba6a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
221783
468
7
+ Addedaws-cdk-lib@^2.60.0
+ Added@aws-cdk/asset-awscli-v1@2.2.222(transitive)
+ Added@aws-cdk/asset-kubectl-v20@2.1.4(transitive)
+ Added@aws-cdk/asset-node-proxy-agent-v6@2.1.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@39.2.18(transitive)
+ Addedaws-cdk-lib@2.178.1(transitive)
+ Addedconstructs@10.4.2(transitive)