mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-26 17:11:52 +00:00
* Fix a number of build issues * Update babel.config.js * Update package.json * Update package.json * Update dreamseeker.js * Update package.json * Update webpack.config.js * Update yarn.lock * a * a Co-authored-by: Aleksej Komarov <stylemistake@gmail.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
24 lines
637 B
Batchfile
24 lines
637 B
Batchfile
@echo off
|
|
where node.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using system-wide Node "
|
|
call node.exe --version
|
|
call node.exe %*
|
|
exit /b %errorlevel%
|
|
)
|
|
call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Download-Node
|
|
for /f "tokens=* USEBACKQ" %%s in (`
|
|
call powershell -NoLogo -ExecutionPolicy Bypass -File "%~dp0\node_.ps1" Get-Path
|
|
`) do (
|
|
set "PATH=%%s;%PATH%"
|
|
)
|
|
where node.exe >nul 2>nul
|
|
if %errorlevel% == 0 (
|
|
echo | set /p printed_str="Using vendored Node "
|
|
call node.exe --version
|
|
call node.exe %*
|
|
exit /b %errorlevel%
|
|
)
|
|
echo "build.bat: Failed to bootstrap Node!"
|
|
exit /b 1
|