yarnthisdir

Transform projects that use npm to yarn

Usage no npm install needed!

<script type="module">
  import yarnthisdir from 'https://cdn.skypack.dev/yarnthisdir';
</script>

README

yarnthisdir · CI GitHub issues license badge

Transform a project using npm to Yarn

You started a new project with npm but decided at some point to switch over to yarn?

This tool makes converting over easy

Install

npm install yarnthisdir

Usage

import yarnThisDir from 'yarnthisdir';

/* 
  you typically only need to do this once,
  call yarnThisDir from root which contains
  `package.json` and `package-lock.json`
*/
yarnThisDir();

API

yarnThisDir(wd?)

Transforms a project that uses npm to Yarn.

  • parameters

    • wd
      • Type: String
      • Default: process.cwd()
      • Description: The current working directory

Pull Requests are highly welcome.