Skip to content

Commit

Permalink
Minor build script changes (microsoft#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIrv authored Dec 14, 2017
1 parent 96f9183 commit 271b3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/npm.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ for /F "tokens=* USEBACKQ" %%V IN (`npm --version`) do (
set CURRENTNPMVERSION=%%V
)
if not %CURRENTNPMVERSION%==%SUPPORTEDNPMVERSION% (
color 0e
echo NPM version %CURRENTNPMVERSION% is not supported with this project. We strongly recommend to use version %SUPPORTEDNPMVERSION%
)
5 changes: 2 additions & 3 deletions scripts/npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ else
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")

# if [ -z $npm_config_arch ]; then
# npm_config_arch=$(npm -p process.arch)
# npm_config_arch=$(node -p process.arch)
# echo "Warning: remember to set \$npm_config_arch to either x64 or ia32 to build the binaries for the right architecture. Picking '$npm_config_arch'."
# fi
fi
Expand All @@ -31,6 +31,5 @@ npm $*

CURRENTNPMVERSION=`npm --version`
if [[ "$CURRENTNPMVERSION" != "$SUPPORTEDNPMVERSION" ]]; then
YELLOW='\033[1;33m'
echo -e "${YELLOW}NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}"
echo "NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}"
fi

0 comments on commit 271b3a0

Please sign in to comment.