Remove Scripts
Easily remove a script from all packages in your monorepo with a single command.
Usage
Use the following commands to remove a script:
bash
monopkg script remove <script-name>
bash
bun x monopkg script remove <script-name>
bash
npx monopkg script remove <script-name>
bash
yarn dlx monopkg script remove <script-name>
Options
-f
,--filter
<packages...>
- Include specific packages.-e
,--exclude
<packages...>
- Exclude specific packages.-w
,--workspace
<workspaces...>
- Root workspaces of the packages.
Examples
Here is how you can remove the build
script from all packages in your monorepo:
bash
monopkg script remove build
bash
bun x monopkg script remove build
bash
npx monopkg script remove build
bash
yarn dlx monopkg script remove build