Skip to content

馃敡[Config] Add TypeScript foundation - #97

Merged
maruson08 merged 1 commit into
v2.2from
chore/typescript-foundation
Sep 28, 2026
Merged

maruson08 merged 1 commit into
v2.2from
chore/typescript-foundation

Conversation

@maruson08

Copy link
Copy Markdown
Member

Problem

Secure Tools had no strict TypeScript boundary for browser code, so high-risk state and lifecycle contracts remained implicit while the custom static build only copied JavaScript sources.

Result

  • adds locked TypeScript tooling with strict checking and controlled, source-map-free browser emission
  • migrates the Image to Text controller, output, and preview modules while preserving their existing public JavaScript paths
  • keeps JavaScript, Node .mjs scripts, locale catalogs, and vendored assets in place for incremental migration
  • adds build artifact guards, regression coverage, CI typechecking, and concise migration documentation

Validation

  • npm ci --ignore-scripts
  • npm run prepare:ocr
  • npm run typecheck
  • npm test
  • npm run build
  • node scripts/validate-build.mjs
  • node tests/ocr-smoke.test.mjs
  • git diff --check
  • browser OCR smoke: PASS: HELLO
  • browser route, legacy redirect, theme, and six-locale QA

Closes #96

@maruson08
maruson08 merged commit 71a87fa into v2.2 Sep 28, 2026
1 check passed
@maruson08 maruson08 mentioned this pull request Sep 28, 2026
@maruson08
maruson08 deleted the chore/typescript-foundation branch September 28, 2026 10:46
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