New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

workspace-versioner

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workspace-versioner

Versions all packages in a yarn workspace to a specified version

latest
npmnpm
Version
1.1.3
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

Workspace Versioner

A poor man's lerna.

This tool will set the version field for all package.jsons in a yarn workspace to the same specified version. It will also take care of updating any cross references within the workspace to that same version as well. If no workspaces are found in the root package.json, it will just update the root package.json version field.

We run this on our build server to set the version number in our frontend workspace to the build-server generated version number.

Usage

First, install the package globally:

yarn global add workspace-versioner

Run the following command from your workspace root:

workspace-versioner 1.2.3

This will version all packages within the workspace to v1.2.3.

Contributing

Clone the repo and run yarn to install dependencies.

Linting

To run the linter:

yarn run lint

and to automatically fix fixable errors:

yarn run lint --fix

FAQs

Package last updated on 24 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts