@@ -77,21 +77,6 @@ rm -Recurse -Force "${DIR}\bin\node_modules"
77
77
copy " ${CHECKOUT_DIR} \scripts\npm.cmd" " ${DIR} \bin\npm.cmd"
78
78
npm version
79
79
80
- mkdir " ${DIR} \bin\npm3"
81
- cd " ${DIR} \bin\npm3"
82
- echo " {}" | Out-File package.json - Encoding ascii # otherwise it doesn't install in local dir
83
- npm install npm@3.1.2
84
-
85
- # add bin\npm3 to the front of the path so we can use npm 3 for building
86
- $env: PATH = " ${DIR} \bin\npm3;${env: PATH} "
87
-
88
- # npm depends on a hardcoded file path to node-gyp, so we need this to be
89
- # un-flattened
90
- cd node_modules\npm
91
- npm install node- gyp
92
- cd ..\..
93
- cp node_modules\npm\bin\npm.cmd
94
-
95
80
# install dev-bundle-package.json
96
81
# use short folder names
97
82
# b for build
@@ -101,6 +86,7 @@ cd "$DIR\b\t"
101
86
npm config set loglevel error
102
87
node " ${CHECKOUT_DIR} \scripts\dev-bundle-server-package.js" | Out-File - FilePath package.json - Encoding ascii
103
88
npm install
89
+ npm dedupe
104
90
npm shrinkwrap
105
91
106
92
mkdir - Force " ${DIR} \server-lib\node_modules"
@@ -114,6 +100,7 @@ mkdir -Force "${DIR}\b\p"
114
100
cd " ${DIR} \b\p"
115
101
node " ${CHECKOUT_DIR} \scripts\dev-bundle-tool-package.js" | Out-File - FilePath package.json - Encoding ascii
116
102
npm install
103
+ npm dedupe
117
104
cmd / c robocopy " ${DIR} \b\p\node_modules" " ${DIR} \lib\node_modules" / e / nfl / ndl
118
105
cd " $DIR "
119
106
cmd / c rmdir " ${DIR} \b" / s / q
@@ -144,9 +131,6 @@ cp "$DIR\mongodb\$mongo_name\bin\mongo.exe" $DIR\mongodb\bin
144
131
rm - Recurse - Force $mongo_zip
145
132
rm - Recurse - Force " $DIR \mongodb\$mongo_name "
146
133
147
- # Remove npm 3 before we package the dev bundle
148
- rm - Recurse - Force " ${DIR} \bin\npm3"
149
-
150
134
rm - Recurse - Force " $py_msi "
151
135
python -- version
152
136
0 commit comments