Skip to content

aube prune

  • Usage: aube prune [-P --prod] [--no-optional]
  • Effect: modifies state

Remove extraneous packages from project node_modules.

Reads the lockfile, computes the packages still reachable from each importer, and removes stale top-level links, stale virtual-store entries, and dangling .bin links. Does not modify package.json or the lockfile.

Flags

  • -P --prod — Remove devDependencies from node_modules

    Aliases: --production

  • --no-optional — Also remove optionalDependencies

  • -h --help — Print help

MIT LicensejdxCopyright © 2026 jdx.dev