Skip to content

Commit

Permalink
Added npm rebuild to the deployment to auto fix packages whenever new…
Browse files Browse the repository at this point in the history
… node versions are out
  • Loading branch information
RadoslavGatev committed Mar 27, 2020
1 parent cd402e3 commit aed1e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AzureDeployment/deploy.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
:: 2. Select node version
call :SelectNodeVersion

:: 3. Install npm packages
:: 3. Install and rebuild npm packages
IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
pushd "%DEPLOYMENT_TARGET%"
call :ExecuteCmd !NPM_CMD! config set scripts-prepend-node-path true
call :ExecuteCmd !NPM_CMD! install --production
call :ExecuteCmd !NPM_CMD! rebuild --production
IF !ERRORLEVEL! NEQ 0 goto error
popd
)
Expand Down

0 comments on commit aed1e12

Please sign in to comment.