Skip to content

Commit

Permalink
Merge pull request #122 from guardian/aa/node-22
Browse files Browse the repository at this point in the history
feat: Update to Node 22
  • Loading branch information
akash1810 authored Nov 27, 2024
2 parents 5e8e8b3 + 0896267 commit 0d9ddad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v22.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`The ExampleTypescriptLambda stack matches the snapshot 1`] = `
"Arn",
],
},
"Runtime": "nodejs20.x",
"Runtime": "nodejs22.x",
"Tags": [
{
"Key": "App",
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk/lib/example-typescript-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class ExampleTypescriptLambda extends GuStack {
*
* Should align with `.nvmrc` at the root of the repository.
*/
runtime: Runtime.NODEJS_20_X,
runtime: Runtime.NODEJS_22_X,

/**
* The architecture of the lambda function.
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest --detectOpenHandles --config ../../jest.config.js --selectProjects lambda",
"start": "tsx --env-file=.env src/run-locally.ts",
"prebuild": "rm -rf dist",
"build": "esbuild src/index.ts --bundle --platform=node --target=node20 --outdir=dist",
"build": "esbuild src/index.ts --bundle --platform=node --target=node22 --outdir=dist",
"postbuild": "cd dist && zip -r example-typescript-lambda.zip ."
},
"devDependencies": {
Expand Down

0 comments on commit 0d9ddad

Please sign in to comment.