1.0.7 • Published 4 years ago

@ekoneko/yarn-install-lock-only v1.0.7

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

Yarn install --lock-only

Look like npm install --package-lock-only

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

This is a simple implement.

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

Usage

import installLockOnly from "@ekoneko/yarn-install-lock-only";

installLockOnly(
  YARN_LOCK_PATH,
  PACKAGE_JSON_PATH,
  OUTPUT_YARN_LOCK_PATH,
  OUTPUT_PACKAGE_JSON_PATH
)("color", "latest");

CLI

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