Skip to content

Commit 860dd0d

Browse files
authored
chore: fix more mismatched versions issues and add a check in ci (#6353)
* chore: fix more mismatched versions issues and add a check in ci * chore(compass): remove postinstall for packaged application
1 parent d6e36be commit 860dd0d

File tree

6 files changed

+512
-176
lines changed

6 files changed

+512
-176
lines changed

.evergreen/functions.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ functions:
202202
203203
# Install dependencies
204204
bash ".evergreen/retry-with-backoff.sh" .evergreen/npm_ci.sh
205+
# Will fail if versions of direct dependencies listed in package-lock
206+
# are not matching versions defined in package.json file of any of the
207+
# workspace packages
208+
# TODO: change this to npm ls --all when rest of the mismatched version issues are resolved
209+
npm ls || echo "\nThe \`npm ls\` command failed with mismatched dependencies error. This usually means that the dependency versions listed in package.json are not matching dependencies resolved and recorded in package-lock.json. If you updated package.json files in your PR, inspect the error output and try to re-install offending dependncies to fix the package-lock file."
205210
206211
bootstrap:
207212
- command: shell.exec

0 commit comments

Comments
 (0)