Skip to content

build: convert repo utility scripts to typescript - #2951

Merged
gpbl merged 1 commit into
mainfrom
build/convert-utility-scripts-ts
Apr 26, 2026
Merged

build: convert repo utility scripts to typescript#2951
gpbl merged 1 commit into
mainfrom
build/convert-utility-scripts-ts

Conversation

@gpbl

@gpbl gpbl commented Apr 26, 2026

Copy link
Copy Markdown
Owner

This finishes the TypeScript migration for the small repo utility scripts that were still living in .mjs while the newer release scripts had already moved to TypeScript. The goal here is consistency only: keep the scripts folder on one runtime path without changing what these utilities do.

What Changed

  • converted scripts/check-package-versions.mjs to scripts/check-package-versions.ts
  • converted scripts/npm-pack-dry-run.mjs to scripts/npm-pack-dry-run.ts
  • updated package.json to run these scripts, and release:ci, through node --import tsx instead of the tsx CLI

Review Notes

  • behavior should stay the same; this is a script runtime cleanup, not a release-policy change
  • I validated the converted commands directly with pnpm check:versions and pnpm pack:dry-run
  • the pack:dry-run validation still shows the existing npm config warnings, but it now runs through the TypeScript script successfully

@changeset-bot

changeset-bot Bot commented Apr 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2f28a07

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gpbl
gpbl merged commit c5868d2 into main Apr 26, 2026
16 checks passed
@gpbl
gpbl deleted the build/convert-utility-scripts-ts branch April 26, 2026 12:36
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