diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2e3b5f6 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +25 diff --git a/README.md b/README.md index 982a2f7..1fed11f 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,21 @@ Firefox: https://addons.mozilla.org/en-US/firefox/addon/rentgen/ ### Pre-requirements - OS: Linux x86_64 -- Node.js: 16.x version +- Node.js: 25.x version (recommended: use [fnm](https://github.com/Schniz/fnm) for automatic version management) - npm: 7.x version or higher +**Using fnm (recommended):** + +If you're using fnm, it will automatically use the correct Node.js version specified in `.nvmrc`: + +```bash +# Install fnm (if not already installed) +curl -fsSL https://fnm.vercel.app/install | bash + +# In the project directory, fnm will automatically use Node.js 25 +fnm use +``` + ### Build steps 1. Pull repository or download a zip package @@ -82,9 +94,21 @@ Firefox: https://addons.mozilla.org/pl/firefox/addon/rentgen/ ### Wymagania wstępne - System operacyjny: Linux x86_64 -- Node.js: 16.x +- Node.js: 25.x (zalecane: użyj [fnm](https://github.com/Schniz/fnm) do automatycznego zarządzania wersją) - npm: 7.x lub wyższy +**Używanie fnm (zalecane):** + +Jeśli używasz fnm, automatycznie użyje prawidłowej wersji Node.js określonej w `.nvmrc`: + +```bash +# Zainstaluj fnm (jeśli nie jest zainstalowane) +curl -fsSL https://fnm.vercel.app/install | bash + +# W katalogu projektu fnm automatycznie użyje Node.js 25 +fnm use +``` + ### Proces budowy 1. Pobierz repozytorium przez `git pull https://git.internet-czas-dzialac.pl/icd/rentgen.git` lub pobierz archwium zip diff --git a/package.json b/package.json index 8766095..c36d187 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "homepage": "https://git.internet-czas-dzialac.pl/icd/rentgen", "author": "Kuba Orlik, Arkadiusz Wieczorek", "license": "GPL-3.0-or-later", + "engines": { + "node": ">=25" + }, "dependencies": { "@iabtcf/core": "^1.3.1", "@types/proposal-relative-indexing-method": "^0.1.0",