🔧 Ignore pubv in knip via knip.json

pubv is a CLI invoked by release.sh, never imported, so knip reported
it as an unused devDependency on every advisory run. Add a knip config
with an ignoreDependencies entry; verified removal of the entry
reproduces the report.
This commit is contained in:
tmu committed 2026-09-10 22:43:04 +00:00
1 parent 0b461c233f
commit 1709fbe842
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -42,9 +42,9 @@ Setup:
✔ `npm run clean` only removes `dist`; add `coverage` (both are gitignored but bloat the working tree) @done
✔ Drop redundant `main`/`types` top-level fields @done
✔ `exports` is the source of truth; `main`/`types` are redundant (harmless, but publint/ATTW prefer `exports`) @done
☐ Silence the knip `@runwisp/pubv` false positive
✔ Silence the knip `@runwisp/pubv` false positive @done
- `pubv` is a CLI invoked by `release.sh`, not imported, so knip flags it as an unused devDependency and advisory output stays permanently red
☐ Add a knip `ignoreDependencies` entry
✔ Add a knip `ignoreDependencies` entry @done
☐ Resolve sourcemap sources for consumers
- `dist/*.map` `sources` are `../src/*.ts`, but `src` is not in `files`, so debuggers get missing sources
☐ Ship `src`, or disable `sourceMap`/`declarationMap` for the published artifact
+4
View File
@@ -0,0 +1,4 @@
{
"$schema": "./node_modules/knip/schema.json",
"ignoreDependencies": ["@runwisp/pubv"]
}