File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
SignallingWebServer/platform_scripts/cmd Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,13 @@ if exist node\ (
140140 set INSTALL_DEPS = 1
141141)
142142
143+ rem NOTE: We want to use our NodeJS (not system NodeJS!) to build the web frontend files.
144+ rem Save our current directory (the NodeJS dir) in a variable
145+ set NODE_DIR = %SCRIPT_DIR% node
146+ set PATH = %NODE_DIR% ;%PATH%
147+
143148rem Print node version
144- FOR /f %%A IN ('node\node .exe -v') DO set NODE_VERSION = %%A
149+ FOR /f %%A IN ('node.exe -v') DO set NODE_VERSION = %%A
145150echo Node version: %NODE_VERSION%
146151popd
147152
@@ -189,10 +194,6 @@ exit /b
189194rem Start in the repo dir
190195pushd %SCRIPT_DIR% ..\..\..\
191196
192- rem NOTE: We want to use our NodeJS (not system NodeJS!) to build the web frontend files.
193- rem Save our current directory (the NodeJS dir) in a variable
194- set NODE_DIR = %SCRIPT_DIR% node
195-
196197IF " %FRONTEND_DIR% " == " " (
197198 set FRONTEND_DIR = " %SCRIPT_DIR% ..\..\www"
198199) else (
@@ -210,7 +211,6 @@ IF NOT exist "%FRONTEND_DIR%" (
210211 set BUILD_FRONTEND = 1
211212)
212213
213- set PATH = %NODE_DIR% ;%PATH%
214214
215215IF " %BUILD_FRONTEND% " == " 1" (
216216 rem We could replace this all with a single npm script that does all this. we do have several build-all scripts already
You can’t perform that action at this time.
0 commit comments