Skip to content

Commit 224d05d

Browse files
author
sai-praveen-os
committed
fix(connectivity_check): use ES modules instead of CommonJS
Switch lambda package from CommonJS to ES modules to be consistent with scripts directory and avoid mixing module systems. Updated package.json type field and tsconfig.json module target to ES2022. Addresses PR #79 review comment from smayberry about avoiding mixed import/require statements. Task: PLATEXP-11106
1 parent 6912f3d commit 224d05d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/connectivity_check/lambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "connectivity-check-lambda",
33
"version": "1.0.0",
4-
"type": "commonjs",
4+
"type": "module",
55
"engines": {
66
"node": "~22"
77
},

modules/connectivity_check/lambda/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "commonjs",
4+
"module": "ES2022",
55
"lib": ["ES2022"],
66
"outDir": ".",
77
"rootDir": ".",

0 commit comments

Comments
 (0)