syi
sync-yarnlock-into-packagejson
npm i sync-yarnlock-into-packagejson
Deprecated!
Warning! package is being deprecated in order to rename it to: syncyarnlock please use it instead
syi

sync-yarnlock-into-packagejson

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

by yosef langer

1.0.6 (see all)License:MITTypeScript:Built-In
npm i sync-yarnlock-into-packagejson
Readme

npm version

sync-yarnlock-into-packagejson

This program uses yarn's official parser to read the yarn.lock file and then produce a promise that returns a json/object.

Install

YARN( Doesn't work because of the HYPHENS please use npm)

yarn add -g sync-yarnlock-into-packagejson

or

NPM

npm install -g sync-yarnlock-into-packagejson

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.
    -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.

Downloads/wk

1

GitHub Stars

97

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

14

OPEN ISSUES

3

OPEN PRs

0
VersionTagPublished
1.0.6
latest
5yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate