carlin 3.1.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -8
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -2393,7 +2393,7 @@ const logPrefix$15 = "lambda";
2393
2393
  * which reduces the payload size when deploying the Lambda function. The file
2394
2394
  * extension of the output files will be `.mjs` for ESM and `.cjs` for CJS.
2395
2395
  */
2396
- const buildLambdaCode = async ({ lambdaEntryPoints, lambdaEntryPointsBaseDir = ".", lambdaExternal = [], lambdaFormat = "esm", lambdaOutdir, lambdaSourcemap = false }) => {
2396
+ const buildLambdaCode = async ({ lambdaEntryPoints, lambdaEntryPointsBaseDir = ".", lambdaExternal = [], lambdaFormat = "esm", lambdaOutdir, lambdaSourceMaps = false }) => {
2397
2397
  log.info(logPrefix$15, "Building Lambda single file...");
2398
2398
  /**
2399
2399
  * Remove the output directory if it exists to not mix old files with the
@@ -2428,7 +2428,7 @@ const buildLambdaCode = async ({ lambdaEntryPoints, lambdaEntryPointsBaseDir = "
2428
2428
  * `sourcesContent`: Node maps a frame from names and lines alone, and the
2429
2429
  * source text would only grow the zip.
2430
2430
  */
2431
- ...lambdaSourcemap ? {
2431
+ ...lambdaSourceMaps ? {
2432
2432
  sourcemap: "linked",
2433
2433
  sourcesContent: false
2434
2434
  } : {},
@@ -2614,7 +2614,7 @@ const uploadCodeToS3 = async ({ stackName, lambdaOutdir }) => {
2614
2614
  //#endregion
2615
2615
  //#region src/deploy/lambda/deployLambdaCode.ts
2616
2616
  const logPrefix$11 = "lambda";
2617
- const deployLambdaCode = async ({ lambdaDockerfile, lambdaExternal = [], lambdaImage, lambdaEntryPoints, lambdaEntryPointsBaseDir = "src", lambdaFormat, lambdaOutdir = "out", lambdaSourcemap, stackName }) => {
2617
+ const deployLambdaCode = async ({ lambdaDockerfile, lambdaExternal = [], lambdaImage, lambdaEntryPoints, lambdaEntryPointsBaseDir = "src", lambdaFormat, lambdaOutdir = "out", lambdaSourceMaps, stackName }) => {
2618
2618
  if (!lambdaEntryPoints.length) return {};
2619
2619
  log.info(logPrefix$11, "Deploying Lambda code...");
2620
2620
  for (const entryPoint of lambdaEntryPoints) {
@@ -2627,7 +2627,7 @@ const deployLambdaCode = async ({ lambdaDockerfile, lambdaExternal = [], lambdaI
2627
2627
  lambdaEntryPointsBaseDir,
2628
2628
  lambdaFormat,
2629
2629
  lambdaOutdir,
2630
- lambdaSourcemap
2630
+ lambdaSourceMaps
2631
2631
  });
2632
2632
  const { bucket, key, versionId } = await uploadCodeToS3({
2633
2633
  stackName,
@@ -3085,7 +3085,7 @@ const addLambdaS3Parameters = ({ template, params, bucket, key, versionId }) =>
3085
3085
  addLambdaCodeToResources(template);
3086
3086
  };
3087
3087
  const deployCloudFormationLambdaCode = async ({ template, params, stackName, cliOptions }) => {
3088
- const { lambdaEntryPoints, lambdaSourcemap } = cliOptions;
3088
+ const { lambdaEntryPoints, lambdaSourceMaps } = cliOptions;
3089
3089
  const finalLambdaEntryPoints = lambdaEntryPoints && lambdaEntryPoints.length > 0 ? lambdaEntryPoints : getLambdaEntryPointsFromTemplate(template);
3090
3090
  const response = await deployLambdaCode({
3091
3091
  lambdaDockerfile: cliOptions.lambdaDockerfile,
@@ -3095,10 +3095,10 @@ const deployCloudFormationLambdaCode = async ({ template, params, stackName, cli
3095
3095
  lambdaFormat: cliOptions.lambdaFormat,
3096
3096
  lambdaImage: cliOptions.lambdaImage,
3097
3097
  lambdaOutdir: cliOptions.lambdaOutdir,
3098
- lambdaSourcemap,
3098
+ lambdaSourceMaps,
3099
3099
  stackName
3100
3100
  });
3101
- if (lambdaSourcemap && finalLambdaEntryPoints.length > 0) addSourceMapsNodeOptions(template);
3101
+ if (lambdaSourceMaps && finalLambdaEntryPoints.length > 0) addSourceMapsNodeOptions(template);
3102
3102
  if (!response) return;
3103
3103
  const { bucket, key, versionId, imageUri } = response;
3104
3104
  if (imageUri) {
@@ -4779,7 +4779,8 @@ const options$2 = {
4779
4779
  describe: "Output directory for built Lambda code.",
4780
4780
  type: "string"
4781
4781
  },
4782
- "lambda-sourcemap": {
4782
+ "lambda-source-maps": {
4783
+ alias: "lambda-sourcemap",
4783
4784
  default: false,
4784
4785
  describe: "Ship a source map with the Lambda bundle and set NODE_OPTIONS=--enable-source-maps, so stack traces point at source files.",
4785
4786
  type: "boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "3.1.0",
3
+ "version": "3.2.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://ttoss.dev/docs/carlin/",
@@ -44,22 +44,22 @@
44
44
  "deep-equal": "^2.2.3",
45
45
  "deepmerge": "^4.3.1",
46
46
  "dotenv": "^17.4.2",
47
- "esbuild": "^0.28.0",
47
+ "esbuild": "^0.28.2",
48
48
  "findup-sync": "^5.0.0",
49
49
  "glob": "^11.0.0",
50
50
  "import-sync": "^2.2.3",
51
- "js-yaml": "^4.1.1",
51
+ "js-yaml": "^4.3.2",
52
52
  "mime-types": "^2.1.35",
53
53
  "npmlog": "^7.0.1",
54
54
  "prettier": "^3.8.3",
55
55
  "semver": "^7.6.3",
56
- "simple-git": "^3.27.0",
56
+ "simple-git": "^3.36.0",
57
57
  "ts-node": "^10.9.2",
58
58
  "uglify-js": "^3.19.3",
59
59
  "yargs": "^17.7.2",
60
+ "@ttoss/cloudformation": "^0.17.0",
60
61
  "@ttoss/config": "^1.41.0",
61
- "@ttoss/cloudformation": "^0.16.1",
62
- "@ttoss/read-config-file": "^2.5.1"
62
+ "@ttoss/read-config-file": "^2.6.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@types/adm-zip": "^0.5.6",
@@ -79,7 +79,7 @@
79
79
  "jest": "^30.4.2",
80
80
  "tsdown": "^0.22.2",
81
81
  "typescript": "~6.0.3",
82
- "@ttoss/test-utils": "^4.4.0"
82
+ "@ttoss/test-utils": "^4.5.0"
83
83
  },
84
84
  "publishConfig": {
85
85
  "access": "public",