Skip to content

fix: keep the package publisher a knip entry - #4851

Merged
yannickmonney merged 1 commit into
mainfrom
fix/knip-publish-package-entry
Oct 12, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/knip-publish-package-entry

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

What

bunx knip fails on main with Unused files (1): scripts/publish-package.ts, so the required Checks gate is red for every pull request (it failed on #4849, whose diff does not touch the file).

#4846 changed publish-packages.yml to run the publisher through a shell variable (PUBLISHER=".../scripts/publish-package.ts", then bun "$PUBLISHER"). Knip's workflow reader followed the old literal bun scripts/publish-package.ts call; it cannot follow a variable. #4846 landed without a merge-queue run, which is why nothing caught it.

Fix

The script is named as an entry of the root workspace in knip.config.ts, next to the performance worker that is launched by path the same way, with the reason in a comment.

Verification

  • bunx knip on main plus an unrelated branch: exit 1 with the line above before, exit 0 after.

The publish-packages workflow runs the publisher through a shell variable (bun "$PUBLISHER"), which knip's workflow reader cannot follow, so knip reports scripts/publish-package.ts as an unused file and the Checks gate fails on every pull request. Name the script as an entry of the root workspace, like the performance worker beside it.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 12, 2026
Merged via the queue into main with commit 7c594da Oct 12, 2026
@yannickmonney
yannickmonney deleted the fix/knip-publish-package-entry branch October 12, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant