Skip to content

Commit

Permalink
Use Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Sep 15, 2024
1 parent 91f1c7a commit 95f76c8
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion tools/syn2mas/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
4 changes: 2 additions & 2 deletions tools/syn2mas/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Build Node.js app
FROM --platform=${BUILDPLATFORM} docker.io/library/node:18-bookworm AS builder
FROM --platform=${BUILDPLATFORM} docker.io/library/node:22-bookworm AS builder

WORKDIR /syn2mas

Expand All @@ -10,7 +10,7 @@ RUN --network=default \
npm ci

# Install the production dependencies for each architecture we support
FROM --platform=${BUILDPLATFORM} docker.io/library/node:18-bookworm AS deps
FROM --platform=${BUILDPLATFORM} docker.io/library/node:22-bookworm AS deps

WORKDIR /deps/arm64

Expand Down
33 changes: 18 additions & 15 deletions tools/syn2mas/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tools/syn2mas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"start": "node dist/index.js"
},
"devDependencies": {
"@tsconfig/node18": "^18.2.2",
"@tsconfig/node22": "^22.0.0",
"@tsconfig/strictest": "^2.0.2",
"@types/command-line-args": "^5.2.2",
"@types/node": "^18.18.7",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.52.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/syn2mas/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": [
"@tsconfig/strictest/tsconfig.json",
"@tsconfig/node18/tsconfig.json",
"@tsconfig/node22/tsconfig.json",
],
"compilerOptions": {
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion tools/syn2mas/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": [
"@tsconfig/strictest/tsconfig.json",
"@tsconfig/node18/tsconfig.json"
"@tsconfig/node22/tsconfig.json"
],
"compilerOptions": {
"outDir": "dist",
Expand Down

0 comments on commit 95f76c8

Please sign in to comment.