Skip to content

Commit 379ef82

Browse files
authored
Merge pull request #205 from forumone/NEXT-203-node-22
Node v22
2 parents 37cdec8 + ab6970a commit 379ef82

File tree

7 files changed

+18
-21
lines changed

7 files changed

+18
-21
lines changed

.ddev/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ database:
1414
use_dns_when_possible: true
1515
composer_version: "2"
1616
web_environment: []
17-
nodejs_version: "20"
17+
nodejs_version: "22"
1818

1919
# Key features of ddev's config.yaml:
2020

.github/workflows/publish-demo-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: '20'
15+
node-version: '22'
1616
- name: Install npm packages
1717
run: npm ci
1818
- name: Build Storybook artifact

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ tsconfig.tsbuildinfo
3939

4040
# Storybook build files
4141
storybook-static/
42+
storybook/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NODE_VERSION="18"
1+
ARG NODE_VERSION="22"
22

33
FROM node:${NODE_VERSION}-alpine AS artifact
44
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.

package-lock.json

Lines changed: 8 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"export": "next build && next export",
1010
"lint": "next lint && stylelint \"source/**/*.css\"",
1111
"prepare": "husky install",
12-
"prettier": "prettier --check pages source/",
12+
"prettier": "prettier --check app source/",
1313
"prettier:write": "prettier --write app source/",
1414
"tsc": "tsc --noEmit",
1515
"test": "npm run lint && npm run tsc",
@@ -42,7 +42,7 @@
4242
"@svgr/babel-plugin-add-jsx-attribute": "^8.0.0",
4343
"@svgr/babel-plugin-remove-jsx-attribute": "^8.0.0",
4444
"@svgr/cli": "^8.1.0",
45-
"@types/node": "^20.19.11",
45+
"@types/node": "^22.18.1",
4646
"@types/react": "19.1.12",
4747
"@types/react-dom": "19.1.9",
4848
"@typescript-eslint/eslint-plugin": "^8.29.1",
@@ -79,5 +79,8 @@
7979
"@types/react": "19.1.12",
8080
"@types/react-dom": "19.1.9",
8181
"storybook": "$storybook"
82+
},
83+
"engines": {
84+
"node": ">=22"
8285
}
8386
}

0 commit comments

Comments
 (0)