Skip to content

Tighten how Browsertime publishes its TypeScript types#2477

Merged
soulgalore merged 1 commit into
mainfrom
publish-types-hygiene
May 20, 2026
Merged

Tighten how Browsertime publishes its TypeScript types#2477
soulgalore merged 1 commit into
mainfrom
publish-types-hygiene

Conversation

@soulgalore
Copy link
Copy Markdown
Member

Move scripting.d.ts to the repo root so it sits next to package.json
instead of inside the tsc outDir, where a future include-glob change
could clobber it. Swap the order under exports so "types" comes before
"import", which matches TypeScript's documented resolution rules and
removes a hazard flagged by package-typing audits. Wire publint into
prepublishOnly so common package.json mistakes fail before a release
goes out instead of being discovered by a user.

Co-authored-by: Claude noreply@anthropic.com

Change-Id: I4bcc7cc7fdd604f6977b850dcfc9430bdf1daa92

  Move scripting.d.ts to the repo root so it sits next to package.json
  instead of inside the tsc outDir, where a future include-glob change
  could clobber it. Swap the order under exports so "types" comes before
  "import", which matches TypeScript's documented resolution rules and
  removes a hazard flagged by package-typing audits. Wire publint into
  prepublishOnly so common package.json mistakes fail before a release
  goes out instead of being discovered by a user.

  Co-authored-by: Claude noreply@anthropic.com

Change-Id: I4bcc7cc7fdd604f6977b850dcfc9430bdf1daa92
@soulgalore soulgalore merged commit 2f86fd6 into main May 20, 2026
16 checks passed
@soulgalore soulgalore deleted the publish-types-hygiene branch May 20, 2026 06:31
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