carlin 1.34.0 → 1.34.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.js +5 -2
  2. package/package.json +13 -14
package/dist/index.js CHANGED
@@ -19,8 +19,8 @@ import deepmerge from 'deepmerge';
19
19
  import { hideBin } from 'yargs/helpers';
20
20
  import yargs from 'yargs';
21
21
  import * as esbuild from 'esbuild';
22
+ import { builtinModules } from 'module';
22
23
  import { typescriptConfig } from '@ttoss/config';
23
- import builtins from 'builtin-modules';
24
24
  import AdmZip from 'adm-zip';
25
25
  import importSync from 'import-sync';
26
26
  import semver from 'semver';
@@ -2413,6 +2413,9 @@ var buildLambdaCode = async ({
2413
2413
  lambdaOutdir
2414
2414
  }) => {
2415
2415
  log5.info(logPrefix5, "Building Lambda single file...");
2416
+ if (fs3__default.existsSync(lambdaOutdir)) {
2417
+ fs3__default.rmSync(lambdaOutdir, { recursive: true });
2418
+ }
2416
2419
  const entryPoints = lambdaEntryPoints.map((entryPoint) => {
2417
2420
  return path__default.resolve(process.cwd(), lambdaEntryPointsBaseDir, entryPoint);
2418
2421
  });
@@ -2428,7 +2431,7 @@ var buildLambdaCode = async ({
2428
2431
  * https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/
2429
2432
  */
2430
2433
  "@aws-sdk/*",
2431
- ...builtins,
2434
+ ...builtinModules,
2432
2435
  ...lambdaExternal
2433
2436
  ],
2434
2437
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "1.34.0",
3
+ "version": "1.34.1",
4
4
  "description": "",
5
5
  "license": "GPL-3.0",
6
6
  "author": "Pedro Arantes <arantespp@gmail.com> (https://twitter.com/arantespp)",
@@ -22,44 +22,43 @@
22
22
  "dist/"
23
23
  ],
24
24
  "dependencies": {
25
- "@aws-sdk/client-cloudformation": "^3.564.0",
25
+ "@aws-sdk/client-cloudformation": "^3.577.0",
26
26
  "@octokit/webhooks": "^12.0.0",
27
27
  "@slack/webhook": "^7.0.2",
28
28
  "adm-zip": "^0.5.12",
29
- "aws-sdk": "^2.1608.0",
30
- "builtin-modules": "^3.3.0",
29
+ "aws-sdk": "^2.1623.0",
31
30
  "change-case": "^5.4.4",
32
31
  "deep-equal": "^2.2.3",
33
32
  "deepmerge": "^4.3.1",
34
33
  "dotenv": "^16.4.5",
35
- "esbuild": "^0.20.2",
34
+ "esbuild": "^0.21.3",
36
35
  "findup-sync": "^5.0.0",
37
- "glob": "^10.3.12",
36
+ "glob": "^10.3.15",
38
37
  "import-sync": "^2.2.2",
39
38
  "js-yaml": "^4.1.0",
40
39
  "mime-types": "^2.1.35",
41
40
  "npmlog": "^7.0.1",
42
41
  "prettier": "^3.2.5",
43
- "semver": "^7.6.0",
42
+ "semver": "^7.6.2",
44
43
  "simple-git": "^3.24.0",
45
44
  "ts-node": "^10.9.2",
46
45
  "uglify-js": "^3.17.4",
47
- "vercel": "^34.1.3",
46
+ "vercel": "^34.2.0",
48
47
  "yargs": "^17.7.2",
49
- "@ttoss/cloudformation": "^0.9.7",
50
- "@ttoss/read-config-file": "^1.0.2",
51
- "@ttoss/config": "^1.32.3"
48
+ "@ttoss/config": "^1.32.4",
49
+ "@ttoss/cloudformation": "^0.9.8",
50
+ "@ttoss/read-config-file": "^1.0.3"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@types/adm-zip": "^0.5.5",
55
- "@types/aws-lambda": "^8.10.137",
54
+ "@types/aws-lambda": "^8.10.138",
56
55
  "@types/deep-equal": "^1.0.4",
57
56
  "@types/findup-sync": "^4.0.5",
58
57
  "@types/glob": "^8.1.0",
59
58
  "@types/jest": "^29.5.12",
60
59
  "@types/js-yaml": "^4.0.9",
61
60
  "@types/mime-types": "^2.1.4",
62
- "@types/node": "^20.12.7",
61
+ "@types/node": "^20.12.12",
63
62
  "@types/npmlog": "^7.0.0",
64
63
  "@types/semver": "^7.5.8",
65
64
  "@types/uglify-js": "^3.17.5",
@@ -67,7 +66,7 @@
67
66
  "jest": "^29.7.0",
68
67
  "tsup": "^8.0.2",
69
68
  "typescript": "~5.4.5",
70
- "@ttoss/test-utils": "^2.1.6"
69
+ "@ttoss/test-utils": "^2.1.7"
71
70
  },
72
71
  "keywords": [],
73
72
  "publishConfig": {