anchor.diff:    popd
   )
   
  +echo Install typescript globally
  +call :ExecuteCmd !NPM_CMD! install -g typescript
   
   :: 4. build 
   echo building code 
  
positive.code: :Deployment
  echo Handling node.js deployment.
  
  echo Install typescript globally
  call :ExecuteCmd npm install -g typescript
  
  echo do the typscript compile
  call :ExecuteCmd npm build
  
  :: 1. KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  :: 2. Select node version
  call :SelectNodeVersion
  
  
negative.code:   popd
  )
  
  :: 1. KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  ::echo start the server
  :: 5. start the app
  ::IF EXIST "%DEPLOYMENT_TARGET%\package.json" (
  ::  pushd "%DEPLOYMENT_TARGET%"
  