Skip to content

refactor(scripts,tool): migrate to JavaScript#265

Merged
LeoMcA merged 5 commits intomainfrom
un-typescript
Mar 20, 2026
Merged

refactor(scripts,tool): migrate to JavaScript#265
LeoMcA merged 5 commits intomainfrom
un-typescript

Conversation

@caugner
Copy link
Copy Markdown
Contributor

@caugner caugner commented Mar 19, 2026

Description

Migrates scripts/ and tool/ from TypeScript to JavaScript.

Also updates tsconfig.json, enabling noImplicitAny and strictNullCheck.

Motivation

  • Finish migration in this repository.
  • Reduce dependencies (tsx, @babel/*).

Additional details

Related issues and pull requests

Continuation of #95.

@caugner caugner requested review from a team and mdn-bot as code owners March 19, 2026 11:09
@caugner caugner requested a review from LeoMcA March 19, 2026 11:09
@caugner caugner marked this pull request as draft March 19, 2026 11:10
caugner added 3 commits March 19, 2026 12:46
- Make Doc.text and Doc.text_hash required (always present in practice)
- Use `doc.body ?? []` for optional Rari.Doc.body
- Cast catch binding to `any` in reorder-search-index.mjs
- Install @types/pg for pg client type coverage
- Import BrowserName and cast string keys for Browsers indexing
- Annotate callback parameters in reorder-search-index.mjs
@caugner caugner marked this pull request as ready for review March 20, 2026 13:53
Copy link
Copy Markdown
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

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

Very nice! As a follow up, it would be nice to merge the cloud-function tsconfig and this root one

@LeoMcA LeoMcA merged commit a2d4b60 into main Mar 20, 2026
6 checks passed
@LeoMcA LeoMcA deleted the un-typescript branch March 20, 2026 14: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.

3 participants