1.0.0 • Published 3 years ago

yarn-global-restore v1.0.0

Weekly downloads
4
License
UNLICENSED
Repository
-
Last release
3 years ago

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

1.0.0

3 years ago