From 1709fbe84212d525619fc768406c7f209b374598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 10 Sep 2026 22:43:04 +0000 Subject: [PATCH] :wrench: 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. --- backlog.tasks | 4 ++-- knip.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 knip.json diff --git a/backlog.tasks b/backlog.tasks index 7182fc2..12f97cf 100644 --- a/backlog.tasks +++ b/backlog.tasks @@ -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 diff --git a/knip.json b/knip.json new file mode 100644 index 0000000..aeeffa9 --- /dev/null +++ b/knip.json @@ -0,0 +1,4 @@ +{ + "$schema": "./node_modules/knip/schema.json", + "ignoreDependencies": ["@runwisp/pubv"] +}