Skip to content

v0.4.0 — config file detection (fix false REMOVE for scripts, storybook, vitest, next)

Latest

Choose a tag to compare

@FlorianBruniaux FlorianBruniaux released this 23 Apr 20:01
· 5 commits to main since this release

What's new

Config file detection — dep-scope now scans config files at the project root to detect packages referenced as strings. Five built-in detectors ship enabled by default, fixing false REMOVE verdicts reported by the community.

Fixed false positives

Package Was detected via
oxfmt, oxlint package.json scripts
@storybook/addon-mcp .storybook/main.ts addons array
@svgr/webpack next.config.mjs turbopack loaders
jsdom vitest.config.ts environment: "jsdom"

Built-in detectors

Detector Config file
package-json-scripts package.json scripts
vitest-config vitest.config.*
vite-config vite.config.*
next-config next.config.*
storybook-config .storybook/main.*

Opt-out

{ "stringReferences": { "disable": ["storybook-config"] } }

Architecture

String references are converted to synthetic ImportInfo entries injected before groupByPackage — verdict engine untouched. Detection is gated against declared dependencies to prevent false KEEPs.

Full changelog: CHANGELOG.md