ihatem / yarn-global-restore

Install yarn global packages from a backed up package.json file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 yarn-global-restore </path/to/package.json> [--keep-versions]
# install globally
$ yarn global add yarn-global-restore

--keep-versions (optional): install with saved versions, otherwise install newest versions

About

Install yarn global packages from a backed up package.json file


Languages

Language:JavaScript 100.0%