Skip to content

refactor: migrate plugin source to TypeScript - #2

Merged
theshwal merged 12 commits into
mainfrom
refactor/typescript
Sep 22, 2026
Merged

theshwal merged 12 commits into
mainfrom
refactor/typescript

Conversation

@theshwal

Copy link
Copy Markdown
Owner

Summary

Migrates the maintained plugin source from JavaScript/JSDoc to strict TypeScript while preserving the runtime behavior.

Changes

  • source moved to src/index.ts
  • strict TypeScript config with noUncheckedIndexedAccess and exactOptionalPropertyTypes
  • openfox/plugin is used as the source-level type import
  • temporary narrow type mirror covers the pending #370/#374 contracts until they ship in a released OpenFox package
  • generated ESM lives in committed dist/
  • OpenFox entry now points to dist/index.js
  • CI typechecks, rebuilds, runs the behavioral suite, and verifies committed dist is current

Why commit dist?

OpenFox's GitHub plugin installer clones the repository and loads the configured entry point; it does not build TypeScript. Keeping generated JS in dist/ preserves one-click GitHub installation without making JavaScript the maintained source.

Validation

The existing six behavior tests are unchanged in scope and now execute against the compiled artifact.

@theshwal
theshwal merged commit 97cbc43 into main Sep 22, 2026
2 checks passed
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