Skip to content

Commit

Permalink
Upgrade Node to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Jan 30, 2025
1 parent 34e0a67 commit 589b6cd
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 90 deletions.
13 changes: 10 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@

## Quick start

Install [Node](https://nodejs.org/en) and [pnpm](https://pnpm.io/), making sure
to respect the version ranges declared in the `engines` field of the root
`package.json`.

> If you work on multiple projects that require different versions of Node and
> pnpm, we recommend installing them in an isolated environement (e.g. with
> Conda) or with a specialised tool like [Volta](https://docs.volta.sh/).
Then, run:

```bash
pnpm install
pnpm start
```

Once the development server has started, press `o` to open the development URL
in your browser, or `h` to show all the available keyboard shortcuts.

## Development

- `pnpm start` - start the H5Web stand-alone demo
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"wouter": "3.3.5"
},
"devDependencies": {
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "3.7.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/d3-array": "~3.2.1",
"@types/d3-format": "~3.0.4",
"@types/ndarray": "1.0.14",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/three": "0.172.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/silx-kit/h5web"
},
"engines": {
"node": "20.x",
"node": "22.x",
"pnpm": "9.x"
},
"packageManager": "pnpm@9.15.4",
Expand Down Expand Up @@ -43,7 +43,7 @@
"@simonsmith/cypress-image-snapshot": "9.1.0",
"@stylistic/eslint-plugin-js": "2.13.0",
"@testing-library/cypress": "10.0.2",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@vitest/eslint-plugin": "1.1.25",
"confusing-browser-globals": "1.0.11",
"cypress": "13.17.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@testing-library/user-event": "14.6.0",
"@types/d3-format": "~3.0.4",
"@types/ndarray": "1.0.14",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-slider": "~1.3.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/h5wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@h5web/app": "workspace:*",
"@h5web/shared": "workspace:*",
"@rollup/plugin-alias": "5.1.0",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"@vitejs/plugin-react-swc": "3.7.2",
"dot-json": "1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@types/d3-scale": "~4.0.8",
"@types/d3-scale-chromatic": "~3.1.0",
"@types/ndarray": "~1.0.14",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-measure": "~2.0.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@types/d3-format": "~3.0.4",
"@types/ndarray": "~1.0.14",
"@types/ndarray-ops": "~1.2.7",
"@types/node": "^20.17.12",
"@types/node": "^22.12.0",
"@types/react": "^18.3.3",
"d3-array": "3.2.4",
"d3-format": "3.1.0",
Expand Down
Loading

0 comments on commit 589b6cd

Please sign in to comment.