yarnthisdir
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i yarnthisdir

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

13 kB

Total Files

14

Last publish

Collaborators

  • olowotemple