File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 42
42
<HelixPreCommand Condition =" '$(NeedsToRunOnBrowser)' == 'true'" Include =" export PATH=$HELIX_CORRELATION_PAYLOAD/chrome-linux:$PATH" />
43
43
44
44
<!-- Fix symbolic links that are broken already on build machine and also in the correlation payload -->
45
- <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" export PATH=$HELIX_CORRELATION_PAYLOAD/build/emsdk/node/14.15.5_64bit/bin:$PATH" />
46
- <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" export HELIX_NODEJS_PATH=$HELIX_CORRELATION_PAYLOAD/build/emsdk/node/14.15.5_64bit" />
45
+ <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" export HELIX_NODEJS_VERSION=%24(ls $HELIX_CORRELATION_PAYLOAD/build/emsdk/node)" />
46
+ <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" export HELIX_NODEJS_PATH=$HELIX_CORRELATION_PAYLOAD/build/emsdk/node/$HELIX_NODEJS_VERSION" />
47
+ <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" export PATH=$HELIX_NODEJS_PATH/bin:$PATH" />
47
48
<HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" rm $HELIX_NODEJS_PATH/bin/npm" />
48
49
<HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" rm $HELIX_NODEJS_PATH/bin/npx" />
49
50
<HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" ln -s ../lib/node_modules/npm/bin/npm-cli.js $HELIX_NODEJS_PATH/bin/npm" />
62
63
<HelixPreCommand Condition =" '$(NeedsToRunOnBrowser)' == 'true'" Include =" set PATH=%HELIX_CORRELATION_PAYLOAD%\chromedriver_win32%3B%PATH%" />
63
64
<HelixPreCommand Condition =" '$(NeedsToRunOnBrowser)' == 'true'" Include =" set PATH=%HELIX_CORRELATION_PAYLOAD%\chrome-win%3B%PATH%" />
64
65
65
- <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" set PATH=%HELIX_CORRELATION_PAYLOAD%\build\emsdk\node\14.15.5_64bit\bin%3B%PATH%" />
66
+ <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" for /f %%i in ('dir %HELIX_CORRELATION_PAYLOAD%\build\emsdk\node /b') do set HELIX_NODEJS_VERSION=%%i" />
67
+ <HelixPreCommand Condition =" '$(NeedsEMSDKNode)' == 'true'" Include =" set PATH=%HELIX_CORRELATION_PAYLOAD%\build\emsdk\node\%HELIX_NODEJS_VERSION%\bin%3B%PATH%" />
66
68
</ItemGroup >
67
69
68
70
<PropertyGroup >
You can’t perform that action at this time.
0 commit comments