yarn-install-lock-only
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Yarn install --lock-only

Look like npm install --package-lock-only

Yarn doesn't support the feature official(issue 5738).

This is a simple implement.

NOTICE: It doesn't do anything for resolutions or flat

CLI

yarn global add yarn-install-lock-only
yarn-install-lock-only <module> [range]

Usage

import installLockOnly from "yarn-install-lock-only";
 
installLockOnly(
  YARN_LOCK_PATH,
  PACKAGE_JSON_PATH,
  OUTPUT_YARN_LOCK_PATH,
  OUTPUT_PACKAGE_JSON_PATH
)("color", "latest");

/yarn-install-lock-only/

    Package Sidebar

    Install

    npm i yarn-install-lock-only

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    42.7 kB

    Total Files

    34

    Last publish

    Collaborators

    • ekoneko