npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

monorepo-ez-script

v0.0.8

Published

CLI for running workspace script easily in monorepo

Readme

monorepo-ez-script

CLI for running script of each workspace in monorepo more easily.

🙅🏻‍♀️ deno is not supported.

Why

There are numerous workspaces in the monorepo. And each workspace has its own scripts in package.json. If you want to run a script in a workspace, you must know the workspace and script name. Then, depending on the type of package manager, you need to type the command as follows.

yarn workspace <WORKSPACE> <SCRIPT>

npm run <SCRIPT> --workspace=<WORKSPACE>

pnpm --filter "<WORKSPACE>" <SCRIPT>

I know we can also add an abbreviated script to root package.json. But, it would be quite cumbersome to add each time the number of workspaces and scripts increases. This project contains a command (i.e. mes run) that allows you to simply select a workspace and a script to run.

Install and Setup

Install:

npm install --save-dev monorepo-ez-script

Create configuration file:

mes init // generate configuration automatically

Usage

$ mes help
Usage: mes [options] [command]

CLI for running workspace script easily in monorepo

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  init            Create configuration file in root directory
  run             Select workspace and run script
  help [command]  display help for command

mes init

  • Collect information like package manager, workspace's name, scripts.
  • Then, create configuration file with above information in root directory.
$ mes init

> Creating configuration file...

> Collecting workspace information...

[====================] 2/2 100%

mes run

  • If there is not configuration, run mes init first automatically.
  • If there is not packageManager in configuraion, apply npm by default.
  • First, choose which workspace to run.
  • Then, choose which script to run.
$ mes run
✔ Which workspace would you like to run script? › monorepo-ez-script
? Which script would you like to run? › - Use arrow-keys. Return to submit.
❯   build
    lint
    format
    prepare
    dev

Configuration

Run command mes init, then configuration .mesrc.json would be generated in root directory automatically.
Currently, only .mesrc.json is supported.
(I will do my best to support in various ways asap.)

.mesrc.json example

{
  "packageManager": "pnpm",
  "workspaces": [
    "monorepo-ez-script"
  ],
  "scripts": {
    "monorepo-ez-script": [
      "build",
      "lint",
      "format",
      "dev"
    ]
  }
}
  • packageManager:

    • npm | pnpm | yarn
    • deno is not supported.
    • If there isn't packageManager, use npm by default.
    • If packageManager is not one of npm, pnpm, yarn, quit command.
  • workspaces:

    • string[]
    • If there isn't workspaces, quit command.
    • If there isn't any workspace in workspaces (empty array), quit command.
  • scripts:

    • Record<string, string[]>
    • Each key is workspace name and value is array including scripts key.
    • It there isn't workspace name that selected as key, quit command.
    • If workspace name that selected has empty array, quit command.

    License

    MIT