update package using yarn code example
Example 1: yarn update all dependencies to latest
yarn upgrade --latest
Example 2: how to upgrade package yarn global
yarn global add <package>@latest
yarn upgrade --latest
yarn global add <package>@latest