[code-infra] Add ts-package-migration skill#48545
Draft
Janpot wants to merge 1 commit into
Draft
Conversation
Deploy previewhttps://deploy-preview-48545--material-ui.netlify.app/ Bundle size
Check out the code infra dashboard for more information about this PR. |
32dcd0a to
ee59374
Compare
ee59374 to
054b411
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a reusable Claude Code skill (
.claude/skills/ts-package-migration/) that encodes the playbook for migrating a MUI package from hand-written.js+.d.tsto true TypeScript (single.ts/.tsxsource,tsc-emitted declarations), like@mui/utils.Captures the procedure and the non-obvious findings discovered during the
@mui/styled-engineconversion (#48544): thecode-infra builddeclaration pipeline andtsconfig.build.jsonrequirement, Babel's import-elision behavior (import type * as/export type *), the(X as any).propTypes /* remove-proptypes */trick to suppress the tsc expando while keeping the production guard,stripInternalfor runtime-only exports, themui-env.d.tsconvention forprocess.env(nonodein build types), the'use client'+export *ESLint constraint, the quality-gate commands, and a bidirectional type-equivalence probe to prove the exported type surface is preserved.Tooling/docs only — no runtime or package changes.