mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Minor build script changes (#329)
This commit is contained in:
@@ -13,6 +13,5 @@ for /F "tokens=* USEBACKQ" %%V IN (`npm --version`) do (
|
|||||||
set CURRENTNPMVERSION=%%V
|
set CURRENTNPMVERSION=%%V
|
||||||
)
|
)
|
||||||
if not %CURRENTNPMVERSION%==%SUPPORTEDNPMVERSION% (
|
if not %CURRENTNPMVERSION%==%SUPPORTEDNPMVERSION% (
|
||||||
color 0e
|
|
||||||
echo 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%
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ else
|
|||||||
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
|
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
|
||||||
|
|
||||||
# if [ -z $npm_config_arch ]; then
|
# 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'."
|
# 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
|
||||||
fi
|
fi
|
||||||
@@ -31,6 +31,5 @@ npm $*
|
|||||||
|
|
||||||
CURRENTNPMVERSION=`npm --version`
|
CURRENTNPMVERSION=`npm --version`
|
||||||
if [[ "$CURRENTNPMVERSION" != "$SUPPORTEDNPMVERSION" ]]; then
|
if [[ "$CURRENTNPMVERSION" != "$SUPPORTEDNPMVERSION" ]]; then
|
||||||
YELLOW='\033[1;33m'
|
echo "NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}"
|
||||||
echo -e "${YELLOW}NPM version ${CURRENTNPMVERSION} is not supported with this project. We strongly recommend to use version ${SUPPORTEDNPMVERSION}"
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user