Skip to content

refactor(build): convert browser asset and build files to TypeScript - #626

Merged
gandazgul merged 1 commit into
mainfrom
codex/ts-workspace-assets
Nov 10, 2026
Merged

gandazgul merged 1 commit into
mainfrom
codex/ts-workspace-assets

Conversation

@gandazgul

@gandazgul gandazgul commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Convert sidebar motion, the UnoCSS config, and the root image worker wrapper to TypeScript. The converted modules emit the same JavaScript. The worker still loads Pi's original JavaScript worker, and the build identity tracks the renamed wrapper.

Workspace continues to serve /design-system/sidebar-motion.js as browser JavaScript. The local server transpiles the packaged TypeScript source and the Astro route bundles that source as text so it can serve the same module after build. The package qualification check compares the served JavaScript against the converted source's output.

All four focused test files passed, with 17 existing tests and zero test-count delta. Verified that the built Astro route returns valid JavaScript at the public URL. The relocated executable passed package qualification, including exact sidebar response bytes and image resizing. Independent spec, standards, and test review passed. Full CI is running.

@gandazgul gandazgul added auto:js-to-ts Automated JavaScript to TypeScript conversion auto:review Ready for auto code review labels Nov 10, 2026
@gandazgul
gandazgul force-pushed the codex/ts-workspace-assets branch from 6d8b58b to 8f50a93 Compare November 10, 2026 23:12
@gandazgul
gandazgul merged commit 7784da7 into main Nov 10, 2026
10 checks passed
@gandazgul
gandazgul deleted the codex/ts-workspace-assets branch November 10, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto:js-to-ts Automated JavaScript to TypeScript conversion auto:review Ready for auto code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant