update yarn packages rails code example
Example 1: yarn update all dependencies to latest
yarn upgrade --latest
Example 2: add dev dependency yarn
yarn add -D package
//or
yarn add --dev package
yarn upgrade --latest
yarn add -D package
//or
yarn add --dev package