yarn-global-restore
v1.0.0
Published
Yarn does not offer a backup/restore feature, so I created this script.
Downloads
4
Readme
yarn-global-restore
Yarn does not offer a backup/restore feature, so I created this script.
Requirements
Backup the global package.json file
$ cp $(yarn global dir)/package.json /path/to/your/backup/folder
Usage
# use without install
$ npx https://github.com/ihatem/yarn-global-restore.git </path/to/package.json> [--keep-versions]
# install globally
$ yarn global add https://github.com/ihatem/yarn-global-restore.git
--keep-versions
(optional): install with saved versions, otherwise install newest versions