From 0b461c233f4db034b73e09b72c255ee1a1c46edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 10 Sep 2026 22:42:32 +0000 Subject: [PATCH] :fire: Drop redundant main/types fields exports already declares types + import for the root entry, so the top-level main/types pair was duplicate metadata. publint and attw stay green with exports alone, verified against a packed consumer install. --- backlog.tasks | 4 ++-- package.json | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backlog.tasks b/backlog.tasks index d659739..7182fc2 100644 --- a/backlog.tasks +++ b/backlog.tasks @@ -40,8 +40,8 @@ Setup: ☐ Confirm this is intended per the feedback-tier table, or point pre-push at `verify` ✔ Clean stale `coverage/` in `npm run clean` @done ✔ `npm run clean` only removes `dist`; add `coverage` (both are gitignored but bloat the working tree) @done -☐ Drop redundant `main`/`types` top-level fields - ☐ `exports` is the source of truth; `main`/`types` are redundant (harmless, but publint/ATTW prefer `exports`) +✔ 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 - `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 diff --git a/package.json b/package.json index 980f8dc..13febe3 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,6 @@ ], "type": "module", "sideEffects": false, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts",