Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Your Name
Your Name 1.0.12
Latest commit 4c664af Nov 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src make keepUpArrow more useful as keepPrefix Nov 29, 2018
.gitignore first commit Oct 24, 2017
CHANGELOG.md first commit Oct 24, 2017
LICENSE.md first commit Oct 24, 2017
README.md Prevent the installation of the package 'global' Apr 9, 2018
package.json 1.0.12 Nov 29, 2018
tsconfig.json first commit Oct 24, 2017
tslint.json added link: and variable support Mar 30, 2018
yarn.lock updated yarn-lock Nov 9, 2017

README.md

npm version

syncyarnlock

Syncs yarn.lock versions into an exsisting package.json file, removing dynamic numbers such as with ^, keeping static versions intact.

Install

YARN

yarn global add syncyarnlock

or

NPM

npm install -g syncyarnlock

Usage

  Usage: syncyarnlock [options]

  Sync `yarn.lock` package versions, into package.json


  Options:

    -V, --version                output the version number
    -d, --dir <path>             directory path where the yarn.lock file is located (default to current directory)
    -p, --dirPackageJson <path>  directory of project with target package.json, if not set, -d will be used
    -s, --save                   By default don't override the package.json file, make a new one instead package.json.yarn
    -k, --keepUpArrow            By default the ^ or any other dynamic numbers are removed and replaced with static ones.
    -g, --keepGit                By default direct git repositories are also replaced by the version written in yarn.
    -l, --keepLink               By default direct link: repositories are also replaced by the version written in yarn.
    -a, --keepVariable <variable>By default everything is converted to yarn version, write a part of the type you wish not to convert, seperate by comma if more than one, to not replace git and link you would use +,link:
    -h, --help                   output usage information
  Transforms yarn.lock files to JSON
  
  Examples:
  //perform inside a directory with yarn.lock and package.json, will output package.json.yarn in the same directory.
  syncyarnlock   
  

Credits

zimbatm - forked this project from theirs, and modified to my needs.

You can’t perform that action at this time.