v0.3.8 — init wizard + false-positive REMOVE fix
What's new
dep-scope init — interactive wizard
init is now a guided setup instead of a static config dump. It detects your framework and existing directories, then asks 4 questions: scan scope, devDependencies, RECODE threshold, config format (JSON or TypeScript).
dep-scope init # interactive
dep-scope init --yes # CI-safe, writes defaults--root flag (scan, analyze)
Shorthand for --src . — scans the full project root including scripts/, tools/, bin/, and any other top-level directory.
dep-scope scan --root
dep-scope analyze gray-matter --rootBug fix: false-positive REMOVE on packages used in scripts/
Packages imported only in scripts/, tools/, or bin/ were incorrectly flagged as unused, generating dangerous npm remove suggestions. Auto-detection now covers those directories. A warning is also printed in "Next steps" when the scan scope may be incomplete.
Scope warning
When a REMOVE verdict is shown with a narrow scan scope:
⚠ Scanned src/ only — verify these aren't used in scripts/, tools/, etc.
→ Use --root . to scan the full project before removing
Installation
npm install -g @florianbruniaux/dep-scope