Skip to content

Commit 7509722

Browse files
nadavsinai-philipsnpalm
authored andcommitted
chore: ESM config update
1 parent bd2ede3 commit 7509722

File tree

9 files changed

+14
-4
lines changed

9 files changed

+14
-4
lines changed

lambdas/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules/
22
build/
3-
dist/
3+
**/dist/
44
*.log
55

66
# Ignore all yarn.lock files except the one in the root

lambdas/functions/ami-housekeeper/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/ami-housekeeper",
33
"version": "1.0.0",
44
"main": "lambda.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/functions/control-plane/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/control-plane",
33
"version": "1.0.0",
44
"main": "lambda.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/functions/gh-agent-syncer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/gh-agent-syncer",
33
"version": "1.0.0",
44
"main": "lambda.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/functions/termination-watcher/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/termination-watcher",
33
"version": "1.0.0",
44
"main": "lambda.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"test": "NODE_ENV=test nx test",

lambdas/functions/webhook/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/webhook",
33
"version": "1.0.0",
44
"main": "lambda.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/libs/aws-powertools-util/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/aws-powertools-util",
33
"version": "1.0.0",
44
"main": "src/index.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/libs/aws-ssm-util/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@aws-github-runner/aws-ssm-util",
33
"version": "1.0.0",
44
"main": "src/index.ts",
5+
"type": "module",
56
"license": "MIT",
67
"scripts": {
78
"start": "ts-node-dev src/local.ts",

lambdas/tsconfig.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
4-
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
4+
"module": "ES2022" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
55
"outDir": "dist",
66
"lib": [
7-
"es2020"
7+
"es2020",
8+
"es2022" /* Include ES2022 library for additional features. */
89
] /* Specify library files to be included in the compilation. */,
910
"downlevelIteration": true /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */,
1011
"strict": true /* Enable all strict type-checking options. */,
11-
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
12+
"moduleResolution": "bundler" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
1213
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
1314
"experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
1415
"emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
16+
"forceConsistentCasingInFileNames": false,
1517
"resolveJsonModule": true,
1618
"types": ["vitest/globals"]
1719
}
1820
}
21+

0 commit comments

Comments
 (0)