Skip to main content

What it flags

An installed package declared in the root package.json under dependencies when the project has no visible references to it. Loadwise uses the declaration as the finding location. Source references, including type-only imports, and mentions in scripts, configuration, styles and workflows count as evidence of use. An ordinary nested tooling manifest also counts as usage evidence. Loadwise checks complete scans of a private project with no declared package workspaces. It leaves development dependencies, optional dependencies, installed packages’ runtime and peer requirements, compiler runtime helpers, type packages and packages that supply a command-line executable alone. Text in Markdown, templates and extensionless configuration counts as usage evidence. A skipped symlink, a partial scan, unreadable input or an unknown package loader makes the rule withhold findings. A missing installation keeps that package out of the finding list. Installation metadata must resolve inside the scanned project. This includes pnpm’s project-local virtual store. A customized external virtual store is outside the rule’s coverage. The rule follows installed runtime and peer requirements across the dependency tree and recognizes explicit npm aliases whose installed package name matches the alias target.

What to change

Check deployment scripts, plug-ins and runtime integrations for usages outside the repository. If the dependency is unnecessary, remove it with the project’s package manager, review the lockfile and run the project tests. Loadwise does not uninstall dependencies or edit their declarations.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: