Skip to content

Migrate codebase to TypeScript#32

Merged
nickesc merged 110 commits intodevfrom
typescript
Mar 9, 2026
Merged

Migrate codebase to TypeScript#32
nickesc merged 110 commits intodevfrom
typescript

Conversation

@nickesc
Copy link
Owner

@nickesc nickesc commented Mar 9, 2026

Convert the entire codebase from plain JavaScript to TypeScript, and converted docs to CI deployment.

Key changes:

  • Add TypeScript support: tsconfig, build step, updated package.json
  • Convert source files to .ts
  • Add comprehensive types directory for project types, including: Lockfile, Jsonfile, ModpackInfo, etc.
  • Strengthen runtime guards and input validation
  • Replace slugify with @sindresorhus/slugify
  • Add type annotations across modules and formalize function signatures/returns.
  • Update scripts to use tsx
  • Update tests to run on typed code (no breaking changes, just config changes for new code), add tests for input validation.
  • Swap to GitHub Actions to build and deploy docs to Pages (removed docs from committed files)

Closes: #21, Closes: #30

@nickesc nickesc self-assigned this Mar 9, 2026
@nickesc nickesc added documentation Improvements or additions to documentation enhancement New feature or request high-priority labels Mar 9, 2026
Copy link
Owner Author

@nickesc nickesc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, merge

@nickesc nickesc merged commit af2c836 into dev Mar 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request high-priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant