BaluJr.
BaluJr.

Reputation: 1080

npm-check-updates (npm ncu): avoid breaking updates

The command npm-check-update displays mayor updates in red. This can be already seen in the first image of the documentaton. But is there a way to exclude these breaking changes from the automatic update? I do not find a parameter for that.

Upvotes: 5

Views: 4140

Answers (2)

Renxing Liu
Renxing Liu

Reputation: 101

It is actually in the readme file: enter image description here

So, just do a ncu -t minor -u to leave major version updates out (those that are most likely to break things).

Upvotes: 9

steeve55
steeve55

Reputation: 11

For my part I do :

ncu -u -x axios,eslint,eslint-plugin-prettier,eslint-plugin-vue,sass-loader,@tinymce/tinymce-vue,vue-browser-detect-plugin

All dependencies after "-x" are major upgrade for me.

Upvotes: 1

Related Questions