ZodulaZodula
Cli

Remove Dependencies

Remove dependencies from a specific app in your Zodula monorepo

Overview

The nailgun remove command allows you to remove dependencies from a specific app within your Zodula monorepo. This command provides an interactive way to select the target app and uninstall packages using Bun.

Usage

nailgun remove <packages...> [options]

Arguments

  • <packages...> - One or more package names to remove

Options

  • -a, --app <app> - Specify the target app name (e.g., zodula, onlyagents)

Examples

Remove dependencies

# Remove a single package
nailgun remove lodash

# Remove multiple packages
nailgun remove react react-dom @types/react

# Remove from a specific app
nailgun remove express --app zodula

Remove development dependencies

# Remove dev dependencies
nailgun remove typescript @types/node --app onlyagents

Interactive Mode

If you don't specify the --app option, the command will prompt you to select from available apps:

nailgun remove lodash
# ? Select an app to remove dependencies from: (Use arrow keys)
# ❯ zodula (/path/to/zodula)
#   onlyagents (/path/to/onlyagents)

How It Works

  1. App Discovery: The command scans your monorepo for available apps
  2. App Selection: Either uses the specified --app option or prompts for selection
  3. Dependency Removal: Runs bun remove in the target app's directory
  4. Verification: Confirms successful removal or reports errors

Notes

  • The command uses Bun as the package manager
  • All dependency types (production, development, peer) can be removed
  • The command automatically changes to the target app's directory before running bun remove
  • If the specified app doesn't exist, the command will list available apps and exit with an error
  • Removing a package will also remove it from your package.json and update the lock file