anchor.diff:  :link-modules
   @rem Link up the native modules inside the js directory
   cd "%scriptroot%\node-psi"
  -call npm install
   call npm link
   if errorlevel 1 goto linking-failed
   cd "%scriptroot%\node-bw"
  -call npm install
   call npm link
   if errorlevel 1 goto linking-failed
   cd "%scriptroot%\forge"
  -call npm install
   call npm link
   if errorlevel 1 goto linking-failed
   cd "%scriptroot%\js"
  
positive.code: echo JS modules linked.
  goto exit
  
  :linking-failed
  echo Linking JS modules failed, please check command output and ensure node.js is installed and setup on your PATH.
  goto exit
  
  :env-error
  
negative.code: goto next-arg
  
  :args-done
  
  :install-deps
  @rem Install all the node module dependencies
  cd "%scriptroot%\node-psi"
  call npm install
  if errorlevel 1 goto install-failed
  cd "%scriptroot%\node-bw"
  call npm install
  if errorlevel 1 goto install-failed
  cd "%scriptroot%\forge"
  call npm install
  if errorlevel 1 goto install-failed
  echo JS modules installed.
  goto project-gen
  
  :project-gen
  @rem Skip project generation if requested.
  