From aed1e128518d2828711e8ed2247393468271c67e Mon Sep 17 00:00:00 2001 From: Radoslav Gatev Date: Fri, 27 Mar 2020 20:47:50 +0200 Subject: [PATCH] Added npm rebuild to the deployment to auto fix packages whenever new node versions are out --- AzureDeployment/deploy.cmd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AzureDeployment/deploy.cmd b/AzureDeployment/deploy.cmd index ba3cac7..097ab79 100644 --- a/AzureDeployment/deploy.cmd +++ b/AzureDeployment/deploy.cmd @@ -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 )