Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/nodejs20.19.5/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs20.19.5/node_modules/npm/npmrc.ber

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

1 change: 1 addition & 0 deletions bin/nodejs22.21.1/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs22.21.1/node_modules/npm/npmrc.ber

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

8 changes: 8 additions & 0 deletions bin/nodejs22.22.1/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nodejsVersion = "22.22.1"
nodejsExe = "node.exe"
nodejsVars = "nodevars.bat"
nodejsNpm = "npm.cmd"
nodejsLaunch = "launch.bat"
nodejsConf = "node_modules/npm/npmrc"

bundleRelease = "@RELEASE_VERSION@"
4 changes: 4 additions & 0 deletions bin/nodejs22.22.1/etc/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\npmrc
4 changes: 4 additions & 0 deletions bin/nodejs22.22.1/etc/npmrc.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs22.22.1\etc\npmrc
12 changes: 12 additions & 0 deletions bin/nodejs22.22.1/launch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET BEARSAMPP_NODEJS_PATH=%~dp0
SET BEARSAMPP_NODEJS_PATH=!BEARSAMPP_NODEJS_PATH:~0,-1!
SET BEARSAMPP_NODEJS_NPM_PATH=%BEARSAMPP_NODEJS_PATH%\node_modules\npm
SET BEARSAMPP_NODEJS_CONFIG_PATH=%BEARSAMPP_NODEJS_NPM_PATH%\npmrc
ECHO prefix = %BEARSAMPP_NODEJS_PATH%>%BEARSAMPP_NODEJS_CONFIG_PATH%

"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global

ENDLOCAL
1 change: 1 addition & 0 deletions bin/nodejs22.22.1/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs22.22.1/node_modules/npm/npmrc.ber

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

1 change: 1 addition & 0 deletions bin/nodejs24.11.1/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs24.11.1/node_modules/npm/npmrc.ber

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

8 changes: 8 additions & 0 deletions bin/nodejs24.14.0/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nodejsVersion = "24.14.0"
nodejsExe = "node.exe"
nodejsVars = "nodevars.bat"
nodejsNpm = "npm.cmd"
nodejsLaunch = "launch.bat"
nodejsConf = "node_modules/npm/npmrc"

bundleRelease = "@RELEASE_VERSION@"
4 changes: 4 additions & 0 deletions bin/nodejs24.14.0/etc/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\npmrc
4 changes: 4 additions & 0 deletions bin/nodejs24.14.0/etc/npmrc.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs24.14.0\etc\npmrc
12 changes: 12 additions & 0 deletions bin/nodejs24.14.0/launch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET BEARSAMPP_NODEJS_PATH=%~dp0
SET BEARSAMPP_NODEJS_PATH=!BEARSAMPP_NODEJS_PATH:~0,-1!
SET BEARSAMPP_NODEJS_NPM_PATH=%BEARSAMPP_NODEJS_PATH%\node_modules\npm
SET BEARSAMPP_NODEJS_CONFIG_PATH=%BEARSAMPP_NODEJS_NPM_PATH%\npmrc
ECHO prefix = %BEARSAMPP_NODEJS_PATH%>%BEARSAMPP_NODEJS_CONFIG_PATH%

"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global

ENDLOCAL
1 change: 1 addition & 0 deletions bin/nodejs24.14.0/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs24.14.0/node_modules/npm/npmrc.ber

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

8 changes: 8 additions & 0 deletions bin/nodejs25.8.0/bearsampp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nodejsVersion = "25.8.0"
nodejsExe = "node.exe"
nodejsVars = "nodevars.bat"
nodejsNpm = "npm.cmd"
nodejsLaunch = "launch.bat"
nodejsConf = "node_modules/npm/npmrc"

bundleRelease = "@RELEASE_VERSION@"
4 changes: 4 additions & 0 deletions bin/nodejs25.8.0/etc/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\npmrc
4 changes: 4 additions & 0 deletions bin/nodejs25.8.0/etc/npmrc.ber
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cache = ~BEARSAMPP_WIN_PATH~\tmp\npm-cache
globalconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\npmrc
init-module = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\.npm-init.js
userconfig = ~BEARSAMPP_WIN_PATH~\bin\nodejs\nodejs25.8.0\etc\npmrc
12 changes: 12 additions & 0 deletions bin/nodejs25.8.0/launch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET BEARSAMPP_NODEJS_PATH=%~dp0
SET BEARSAMPP_NODEJS_PATH=!BEARSAMPP_NODEJS_PATH:~0,-1!
SET BEARSAMPP_NODEJS_NPM_PATH=%BEARSAMPP_NODEJS_PATH%\node_modules\npm
SET BEARSAMPP_NODEJS_CONFIG_PATH=%BEARSAMPP_NODEJS_NPM_PATH%\npmrc
ECHO prefix = %BEARSAMPP_NODEJS_PATH%>%BEARSAMPP_NODEJS_CONFIG_PATH%

"%BEARSAMPP_NODEJS_PATH%\nodevars.bat" & "%BEARSAMPP_NODEJS_PATH%\npm" config set globalconfig "%BEARSAMPP_NODEJS_CONFIG_PATH%" --global
Comment on lines +8 to +10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Unquoted npmrc redirection 🐞 Bug ⛯ Reliability

Newly added launch.bat files write npmrc via unquoted output redirection, which will break when the
install path contains spaces (common on Windows), causing npm prefix/globalconfig setup to fail.
Agent Prompt
## Issue description
`launch.bat` writes to `%BEARSAMPP_NODEJS_CONFIG_PATH%` using an unquoted redirection target. This can fail when the Bearsampp install path contains spaces.

## Issue Context
This PR adds new `launch.bat` files for Node.js 22.22.1 / 24.14.0 / 25.8.0. The same repo already contains a safer quoted redirection pattern in `bin/archived/nodejs20.19.5/launch.bat`.

## Fix Focus Areas
- bin/nodejs22.22.1/launch.bat[4-11]
- bin/nodejs24.14.0/launch.bat[4-11]
- bin/nodejs25.8.0/launch.bat[4-11]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


ENDLOCAL
1 change: 1 addition & 0 deletions bin/nodejs25.8.0/node_modules/npm/npmrc

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

1 change: 1 addition & 0 deletions bin/nodejs25.8.0/node_modules/npm/npmrc.ber

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

2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bundle.name = nodejs
bundle.release = 2026.1.15
bundle.release = 2026.3.7
bundle.type = bins
bundle.format = 7z

Expand Down
3 changes: 3 additions & 0 deletions releases.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
25.8.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2026.3.7/bearsampp-nodejs-25.8.0-2026.3.7.7z
25.2.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.12.30/bearsampp-nodejs-25.2.1-2025.12.30.7z
24.14.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2026.3.7/bearsampp-nodejs-24.14.0-2026.3.7.7z
24.11.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.12.30/bearsampp-nodejs-24.11.1-2025.12.30.7z
24.6.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.8.21/bearsampp-nodejs-24.6.0-2025.8.21.7z
24.4.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.7.31/bearsampp-nodejs-24.4.1-2025.7.31.7z
Expand All @@ -9,6 +11,7 @@
23.6.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.1.23/bearsampp-nodejs-23.6.1-2025.1.23.7z
23.3.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2024.12.1/bearsampp-nodejs-23.3.0-2024.12.1.7z
23.1.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2024.11.1/bearsampp-nodejs-23.1.0-2024.11.1.7z
22.22.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2026.3.7/bearsampp-nodejs-22.22.1-2026.3.7.7z
22.21.1 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.11.23/bearsampp-nodejs-22.21.1-2025.11.23.7z
22.18.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.8.21/bearsampp-nodejs-22.18.0-2025.8.21.7z
22.17.0 = https://github.com/Bearsampp/module-nodejs/releases/download/2025.7.2/bearsampp-nodejs-22.17.0-2025.7.2.7z
Expand Down