Skip to content

A command-line tool for converting projects that use Yarn to npm.

Notifications You must be signed in to change notification settings

mixmaxhq/deyarn

Repository files navigation

deyarn

A command-line tool for converting projects that use yarn to npm.

The follow-up to npm2yarn. See https://mixmax.com/blog/to-yarn-and-back-again-npm for motivation.

Procedure

deyarn:

  1. Removes yarn.lock if it exists
  2. Removes node_modules to avoid any installation conflicts
  3. Installs your project dependencies using npm, generating a package-lock.json file
  4. Logs a list of manual steps to be taken to complete the transition

This conversion will likely involve the upgrading of some/many of your transitive dependencies, so make sure to test thoroughly! :)

Quick Start

You can use deyarn via npx to quickly convert a project without needing to install deyarn first. Just run the following command in your project directory:

npx deyarn

Note: The directory must be a Git repository.

Alternative Usage

Alternatively you can install deyarn globally (see below) and then run $ deyarn in your project directory instead.

Installation

npm install -g deyarn

or

yarn global add deyarn

Contributing

We welcome your pull requests! Please lint your code.

Changelog

  • 1.0.0 Add initial code

About

A command-line tool for converting projects that use Yarn to npm.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published