You started a new project with npm but decided at some point to switch over to yarn?
This tool makes converting over easy
npm install yarnthisdir
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();
Transforms a project that uses npm to Yarn.
-
- wd
- Type:
String
- Default:
process.cwd()
- Description: The current working directory
- Type:
- wd
Pull Requests are highly welcome.