This package has been deprecated

Author message:

Warning! package is being deprecated in order to rename it to: syncyarnlock please use it instead

sync-yarnlock-into-packagejson
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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.

/sync-yarnlock-into-packagejson/

    Package Sidebar

    Install

    npm i sync-yarnlock-into-packagejson

    Weekly Downloads

    0

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    3.74 kB

    Total Files

    4

    Last publish

    Collaborators

    • vasilevich