Skip to content
Snippets Groups Projects
Verified Commit f12fb351 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: switch nodejs_22 to nodejs_20

parent 3b8e6da2
Branches
Tags
No related merge requests found
...@@ -25,7 +25,7 @@ with pkgs'; [ ...@@ -25,7 +25,7 @@ with pkgs'; [
libffi libffi
logrotate logrotate
meld meld
nodejs_22 nodejs_20
open-sans open-sans
plantuml plantuml
ranger ranger
......
...@@ -16,7 +16,7 @@ in ...@@ -16,7 +16,7 @@ in
archive=$(ls ${monster} | grep tgz) archive=$(ls ${monster} | grep tgz)
## npm instead of pnpm because of https://github.com/pnpm/pnpm/issues/7950 ## npm instead of pnpm because of https://github.com/pnpm/pnpm/issues/7950
if ! publishingResult=$(${pkgs'.nodejs_22}/bin/npm publish "${monster}/$archive" --json --dry-run --no-git-checks --access public) if ! publishingResult=$(${pkgs'.nodejs_20}/bin/npm publish "${monster}/$archive" --json --dry-run --no-git-checks --access public)
then then
echo_fail "Failed to publish the project." echo_fail "Failed to publish the project."
exit 1 exit 1
......
...@@ -13,7 +13,7 @@ in ...@@ -13,7 +13,7 @@ in
source ${pkgs'.common}/bin/common source ${pkgs'.common}/bin/common
local prefix="''${sourcePath}/" local prefix="''${sourcePath}/"
echo_step "build stylesheet ''${1#$prefix}" echo_step "build stylesheet ''${1#$prefix}"
${pkgs'.nodejs_22}/bin/node ./development/scripts/buildStylesheets.mjs "$1" ${pkgs'.nodejs_20}/bin/node ./development/scripts/buildStylesheets.mjs "$1"
} }
export -f build export -f build
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
echo_hint "The command is executed in the current working directory and not in a nix derivation." echo_hint "The command is executed in the current working directory and not in a nix derivation."
cd_working_dir cd_working_dir
if ! ${pkgs'.nodejs_22}/bin/node development/scripts/createNewComponentClass.mjs "$@" if ! ${pkgs'.nodejs_20}/bin/node development/scripts/createNewComponentClass.mjs "$@"
then then
echo_fail "script createNewClass.mjs failed, check your JS!" echo_fail "script createNewClass.mjs failed, check your JS!"
exit 1 exit 1
......
...@@ -58,7 +58,7 @@ in ...@@ -58,7 +58,7 @@ in
export MNEMONIC=$(echo $NAME | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]//g') export MNEMONIC=$(echo $NAME | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]//g')
${pkgs'.envsubst}/bin/envsubst < ./nix/config/release.nix.template > ./nix/config/release.nix ${pkgs'.envsubst}/bin/envsubst < ./nix/config/release.nix.template > ./nix/config/release.nix
if ! ${pkgs'.nodejs_22}/bin/npm version "$gitVersion" --no-git-tag-version; then if ! ${pkgs'.nodejs_20}/bin/npm version "$gitVersion" --no-git-tag-version; then
echo_fail "Error: Could not write project version." echo_fail "Error: Could not write project version."
exit 1 exit 1
fi fi
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
exit 1 exit 1
fi fi
if ! ${pkgs'.nodejs_22}/bin/node "''${TEST_CASES_PATH}/puppeteer.mjs" --browser ${pkgs'.chromium}/bin/chromium --path "''${TEST_CASES_PATH}/test.html" if ! ${pkgs'.nodejs_20}/bin/node "''${TEST_CASES_PATH}/puppeteer.mjs" --browser ${pkgs'.chromium}/bin/chromium --path "''${TEST_CASES_PATH}/test.html"
then then
echo "Tests failed, check your JS!" echo "Tests failed, check your JS!"
exit 1 exit 1
......
...@@ -8,7 +8,7 @@ in ...@@ -8,7 +8,7 @@ in
echo_hint "The command is executed in the current working directory and not in a nix derivation." echo_hint "The command is executed in the current working directory and not in a nix derivation."
cd_working_dir cd_working_dir
if ! ${pkgs'.nodejs_22}/bin/node "$(pwd)/test/web/puppeteer.mjs" --browser ${pkgs'.ungoogled-chromium}/bin/chromium --path "$(pwd)/test/web/test.html" if ! ${pkgs'.nodejs_20}/bin/node "$(pwd)/test/web/puppeteer.mjs" --browser ${pkgs'.ungoogled-chromium}/bin/chromium --path "$(pwd)/test/web/test.html"
then then
echo_fail "Tests failed, check your JS!" echo_fail "Tests failed, check your JS!"
exit 1 exit 1
......
...@@ -29,7 +29,7 @@ in ...@@ -29,7 +29,7 @@ in
export COMMIT=${releaseInfo.commit} export COMMIT=${releaseInfo.commit}
export PNPX_BIN=${pkgs'.nodePackages.pnpm}/bin/pnpx export PNPX_BIN=${pkgs'.nodePackages.pnpm}/bin/pnpx
export NODE_BIN=${pkgs'.nodejs_22}/bin/node export NODE_BIN=${pkgs'.nodejs_20}/bin/node
cd development cd development
......
...@@ -40,7 +40,7 @@ in ...@@ -40,7 +40,7 @@ in
exit 1 exit 1
fi fi
url="$(${pkgs'.nodejs_22}/bin/npx create-polyfill-service-url analyse --cwd="''${TMPDIR}" --file=monster.js)" url="$(${pkgs'.nodejs_20}/bin/npx create-polyfill-service-url analyse --cwd="''${TMPDIR}" --file=monster.js)"
${pkgs'.coreutils}/bin/rm ''${TMPDIR}/monster.js ${pkgs'.coreutils}/bin/rm ''${TMPDIR}/monster.js
${pkgs'.coreutils}/bin/rm -rf ''${TMPDIR}/js* ${pkgs'.coreutils}/bin/rm -rf ''${TMPDIR}/js*
${pkgs'.coreutils}/bin/rmdir ''${TMPDIR} ${pkgs'.coreutils}/bin/rmdir ''${TMPDIR}
...@@ -57,7 +57,7 @@ in ...@@ -57,7 +57,7 @@ in
${pkgs'.gnused}/bin/sed -i "1 i import \"./prepare.js\";" ''${TEST_WEB_PATH}/import.js ${pkgs'.gnused}/bin/sed -i "1 i import \"./prepare.js\";" ''${TEST_WEB_PATH}/import.js
${pkgs'.gnused}/bin/sed -i "1 i /** this file was created automatically by the run-web-tests script */" ''${TEST_WEB_PATH}/import.js ${pkgs'.gnused}/bin/sed -i "1 i /** this file was created automatically by the run-web-tests script */" ''${TEST_WEB_PATH}/import.js
if ! ${pkgs'.nodejs_22}/bin/npx esbuild --platform=browser --sourcemap=inline --external:ws \ if ! ${pkgs'.nodejs_20}/bin/npx esbuild --platform=browser --sourcemap=inline --external:ws \
--external:jsdom --external:fs --external:process --external:crypto --bundle ''${TEST_WEB_PATH}/import.js --outfile=''${TEST_WEB_PATH}/tests.js --external:jsdom --external:fs --external:process --external:crypto --bundle ''${TEST_WEB_PATH}/import.js --outfile=''${TEST_WEB_PATH}/tests.js
then then
echo "ERROR: esbuild failed, check your JS!" echo "ERROR: esbuild failed, check your JS!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment