Skip to content

Convert version-badge to TypeScript - #9

Merged
camacho merged 2 commits into
mainfrom
ts-version-badge
Jul 5, 2026
Merged

Convert version-badge to TypeScript#9
camacho merged 2 commits into
mainfrom
ts-version-badge

Conversation

@camacho

@camacho camacho commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Wave-A TypeScript conversion per the phase-3 plan (engines pilot pattern): index.ts + per-package types.ts (exported TransformArgs/TransformOptions), spec + example converted (.ts specifiers, native Node ≥22.18 type-stripping for dev), dist packaging (exports/types → dist/, files: ["dist"], prepack build), changeset minor (types added, zero runtime change).

Logic byte-for-byte vs main (review-verified line-by-line, incl. prerelease→orange and the fail-loud missing-package.json throw).

Package-specific: @types/semver devDep added — semver@7.8.5 ships no declarations (verified empirically; the plan's contrary claim was wrong).

Validation: typecheck + lint + prettier clean · full workspace tests green · tarball gate incl. consumer-typecheck · node example.ts exit 0 · docs idempotent · code-reviewed (APPROVE)

camacho added 2 commits July 5, 2026 21:09
index.ts + types.ts + index.spec.ts + example.ts, tsconfig.build.json
(rootDir/include root-relative for the flat plugin layout), dist
packaging with prepack. Logic unchanged (incl. prerelease-orange color
and fail-loud missing-package.json throw), types + syntax + .ts
specifiers only. Adds @types/semver devDependency since the installed
semver@7 package does not ship its own type declarations.
@camacho
camacho merged commit 8c1aa44 into main Jul 5, 2026
2 checks passed
@camacho
camacho deleted the ts-version-badge branch July 5, 2026 20:35
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