File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33set -e
44# just to make sure: we are in the mongosh root dir
55test -x packages && grep -q ' "name": "mongosh"' package.json
6- npm -v
6+ pnpm -v
77# we pick a target directory that is not affected by the mongosh node_modules directory
88mongosh_root_dir=$PWD
99test_root_dir=/tmp/mongosh-vscode-test
@@ -12,7 +12,7 @@ rm -rf "$test_root_dir" && mkdir -p "$test_root_dir"
1212cd " $test_root_dir "
1313git clone --depth=10 https://github.com/mongodb-js/vscode.git
1414cd vscode
15- npm install --force
15+ pnpm install
1616rm -rf node_modules/@mongosh node_modules/mongodb node_modules/@mongodb-js/devtools-connect node_modules/@mongodb-js/devtools-proxy-support
1717(cd node_modules && \
1818 ln -s " $mongosh_root_dir /packages" @mongosh && \
@@ -21,6 +21,6 @@ rm -rf node_modules/@mongosh node_modules/mongodb node_modules/@mongodb-js/devto
2121 ln -s " $mongosh_root_dir /node_modules/@mongodb-js/devtools-connect" devtools-connect && \
2222 ln -s " $mongosh_root_dir /node_modules/@mongodb-js/devtools-proxy-support" devtools-proxy-support)
2323# This test can require a lot of memory so we bump the maximum size.
24- NODE_OPTIONS=' --max-old-space-size=4096 --no-experimental-strip-types' npm test
24+ NODE_OPTIONS=' --max-old-space-size=4096 --no-experimental-strip-types' pnpm test
2525cd /tmp
2626rm -rf " $test_root_dir "
You can’t perform that action at this time.
0 commit comments