Skip to content

Updating Code PushUp

Matěj Chalk edited this page Mar 26, 2024 · 3 revisions

This is a temporary guide for updating all Code PushUp packages to the latest version (should be automated once Have locked in versions for dependencies (#500) issue is fixed).

Check installed versions

Check that all @code-pushup packages have the same version installed (@code-pushup/portal-client is an exception):

  • NPM: npm list @code-pushup/{cli,core,models,utils,eslint-plugin,coverage-plugin,js-packages-plugin}
  • Yarn 1: yarn list @code-pushup/{cli,core,models,utils,eslint-plugin,coverage-plugin,js-packages-plugin}
  • Yarn 2+: yarn info @code-pushup/{cli,core,models,utils,eslint-plugin,coverage-plugin,js-packages-plugin}

Updating to latest versions

  • NPM: npm i @code-pushup/{cli,eslint-plugin,coverage-plugin,js-packages-plugin}@latest followed by npm upgrade @code-pushup/{core,models,utils}
  • Yarn 1: yarn upgrade --scope @code-pushup --latest
  • Yarn 2+: yarn up @code-pushup/* -R