Skip to content

chore: check the entries of the API report with api-report 0.5.7 - #173

Merged
mark1russell7 merged 1 commit into
mainfrom
chore/api-entries-only-057
Nov 15, 2026
Merged

mark1russell7 merged 1 commit into
mainfrom
chore/api-entries-only-057

Conversation

@mark1russell7

Copy link
Copy Markdown
Owner

The check that the API report names only the declaration files of the entry points moves from a local test to api-report 0.5.7, with its new option entriesOnly.

What changes

  • The root package.json has "apiReport": { "entriesOnly": true }. pnpm check:api (CI runs it) now fails when a declaration of the report is in a chunk of the bundler, and the error names the file and the names.
  • @mark1russell7/api-report goes from ^0.5.3 to ^0.5.7.
  • src/api-report.test.ts no longer has its own check of the chunks (the entryFiles helper and one test). The test of the counts of docs/API-REVIEW.md stays. The header comment names the option that replaces the removed test.

The check fails when it must. I put a fake chunk in the build of polite-crawler-mcp (leak-AbCd1234.d.mts, re-exported from index.d.mts). pnpm check:api exited with 1: "The report of polite-crawler-mcp has declarations in files that are not the declaration file of an entry (the option entriesOnly): build/leak.chunk.d.mts (leakedName)." After a clean build, it exited with 0.

The lockfile: api-report 0.5.7 brings @mark1russell7/conventions 0.41.13 for itself. The root keeps 0.41.10 until the next batch update of the dev tools.

Version: none. No published file changes.

Local checks: a build of both packages, pnpm check:api (0 on the clean build, 1 on the planted chunk), vitest run src/api-report.test.ts (1 pass), prettier and ste-lint on the changed files.

🤖 Generated with Claude Code

The option entriesOnly of api-report fails check:api when a declaration
of the report is in a chunk of the bundler. It replaces the local test
of the chunks. The test of the counts of docs/API-REVIEW.md stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mark1russell7
mark1russell7 merged commit 87c997b into main Nov 15, 2026
26 checks passed
@mark1russell7
mark1russell7 deleted the chore/api-entries-only-057 branch November 15, 2026 18:08
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