Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stefanpenner/yarnlock-origin-changer

A simple executable to migrate a yarn.lock file from 1 registry to another
https://github.com/stefanpenner/yarnlock-origin-changer

Last synced: 17 days ago
JSON representation

A simple executable to migrate a yarn.lock file from 1 registry to another

Awesome Lists containing this project

README

        

## yarnlock origin changer [![CI](https://github.com/stefanpenner/yarnlock-origin-changer/workflows/CI/badge.svg)](https://github.com/stefanpenner/yarnlock-origin-changer/actions?query=workflow%3ACI)

A simple CLI which allows updating of an origin's within a yarn.lock file

### Installation
```sh
yarn global add yarnlock-origin-changer
```

### Usage

The following command will rewrite the contents of `./yarn.lock` resolved href origins from `https://registry.yarnpkg.com` to `http://registry.iamstef.net`

```sh
yarnlock-origin-changer ./yarn.lock https://registry.yarnpkg.com http://registry.iamstef.net
```