Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clabs/packages-publisher

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clabs/packages-publisher

CLI for publishing packages within a repository using the same version for all packages

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

Packages Publisher

Tool to help publishing packages within a repository, using the same version for all packages.

Quick start

You can install it globally to use across projects:

npm install -g @clabs/packages-publisher

You can check it has been installed by running:

packages-publisher --help

or the short version:

pkgs --help

Usage

Running the tool

This tool should be ran from the root of the monorepo for multiple packages. It can also be ran from within a single package. It can either be ran directly or added to your npm scripts.

Note that if you are using yarn you might need to add a .yarnrc with npm's registry so that it can find the right information when publishing. See this package's .yarnrc for an example.

Configuration

You need to indicate what's the path where packages can be found. For that, you can add a configuration to the package.json at the root of your monorepo.

{
  [...]
  "pkgs": {
    "path": "./packages"
  }
  [...]
}

Alternatively, if path is not configured there, you can pass it as a flag to the commands.

Commands

At any point, you can run pkgs [command] --help to learn more about a command.

Bump Versions

This bumps all packages in the given path and where they are used as dependencies as well.

Example:

pkgs bump-versions minor --path packages
Publish

Builds and publishes all packages in the given path to npm. You can skip build if you have a monorepo build type.

Example:

pkgs publish --path packages [--otp 123456] [--skip-build]

Development

  • See the development guide

Keywords

FAQs

Package last updated on 23 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc