Skip to content

Inspect Scripts

The script inspect command allows you to inspect the scripts in the package.json files of all packages in the workspace.

Usage

To inspect the scripts in the package.json files of all packages in the workspace, you can run the following command:

bash
monopkg script inspect [name...]
bash
bun x monopkg script inspect [name...]
bash
npx monopkg script inspect [name...]
bash
yarn dlx monopkg script inspect [name...]

Options

  • -f, --filter <packages...> - Include specific packages.
  • -e, --exclude <packages...> - Exclude specific packages.
  • -w, --workspace <workspaces...> - Root workspaces of the packages.

Examples

List all scripts in the package.json files of all packages in the workspace:

bash
monopkg script inspect
bash
bun x monopkg script inspect
bash
npx monopkg script inspect
bash
yarn dlx monopkg script inspect

List specific scripts in the package.json files of all packages in the workspace:

bash
monopkg script inspect build test
bash
bun x monopkg script inspect build test
bash
npx monopkg script inspect build test
bash
yarn dlx monopkg script inspect build test

Released under the MIT License.