Created
November 5, 2019 15:51
-
-
Save arthurdenner/11b1835b00a0dfe85791c1aaf1c9be3e to your computer and use it in GitHub Desktop.
Gist to get the commands to update your dependencies and devDependencies with yarn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { dependencies, devDependencies } = require('./package.json'); | |
const depKeys = Object.keys(dependencies).join(' '); | |
const devDepKeys = Object.keys(devDependencies).join(' '); | |
const depInstall = `yarn add ${depKeys}`; | |
const devDepInstall = `yarn add -D ${devDepKeys}`; | |
console.log(depInstall); | |
console.log(''); | |
console.log(devDepInstall); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment