infra: cleanup tsconfig and add typecheck to desktop #253
Reference in New Issue
Block a user
Delete Branch "add-typecheck"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
65216441-ec00-4771-9e62-aed159801632📥 Commits
Reviewing files that changed from the base of the PR and between
92894c4af8and10c2fbe65f.📒 Files selected for processing (4)
.github/workflows/pr-quality-gate-js.ymljs/desktop/forge.config.tsjs/desktop/package.jsonjs/desktop/tsconfig.json📝 Walkthrough
Walkthrough
The PR updates the TypeScript configuration to use ESNext modules and bundler resolution strategy, replaces the
compilenpm script with atypecheckscript, updatesforge.config.tsto remove an unused type import and work with the new configuration, and adds ayarn typecheckstep to the desktop workflow.Changes
TypeScript Typecheck Integration
js/desktop/tsconfig.jsoncommonjstoESNextand moduleResolution changed fromnodetobundler.js/desktop/package.json,js/desktop/forge.config.tscompilescript is replaced withtypecheckthat runstsc --noEmit; the unusedSignToolOptionsimport is removed from forge config andhashesis cast toanytype..github/workflows/pr-quality-gate-js.ymlyarn typecheckafter dependency installation.Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
add-typecheckComment
@coderabbitai helpto get the list of available commands and usage tips.