typescript-tooling-migration
БесплатноБез исполняемых скриптовНе проверенMigrate or upgrade TypeScript tooling in the Phoenix monorepo. Use when upgrading TypeScript versions, switching tools (ESLint to oxlint, Prettier to oxfmt)…
от Arize-ai★ 12 510 звёзд на GitHubОб этом скилле
TypeScript Tooling Migration
Guide for migrating or upgrading TypeScript tooling in the Phoenix monorepo. This skill covers upgrading core dependencies (TypeScript, React), switching tools (linters, formatters, bundlers), and managing breaking changes across js/app/ and js/ directories.
Monorepo Structure
All TypeScript code lives in a single pnpm workspace rooted at js/:
| Directory | Purpose |
|---|---|
js/app/ |
React/TypeScript frontend (main Phoenix UI, workspace package phoenix-ui) |
js/packages/* |
Publishable TypeScript packages (phoenix-client, phoenix-evals, etc.) |
js/ |
Workspace root: single pnpm-lock.yaml, pnpm-workspace.yaml, .pnpmfile.cjs |
Shared Dependencies
Shared tooling versions are managed at the workspace root where possible:
| Tool | Config Location |
|---|---|
| pnpm | js/package.json → packageManager |
| TypeScript | package.json → devDependencies (keep js/app and js root aligned) |
| oxlint | package.json → devDependencies (keep js/app and js root aligned) |
| oxfmt | package.json → devDependencies (keep js/app and js root aligned) |
Config File Locations
| Config | Location | Purpose |
|---|---|---|
.oxlintrc.json |
Root + js/app/ + js/ |
Linter config (nested inheritance) |
.oxfmtrc.jsonc |
Root | Formatter config (shared) |
tsconfig.json |
js/app/ and js/ packages |
TypeScript config |
vite.config.ts |
js/app/ |
Build/dev server config |
relay.config.js |
js/app/ |
GraphQL/Relay config |
Migration Types
Type 1: Tool Replacement (e.g., ESLint → oxlint)
Complete replacement of one tool with another.
Workflow:
- Research new tool's migration guide
- Install new tool alongside old
- Create new config, verify it works
- Update package scripts
- Update pre-commit hooks
- Remove old tool and config
- Update documentation
Type 2: Major Version Upgrade (e.g., TypeScript 5 → 6)
Upgrading a tool to a new major version with breaking changes.
Workflow:
- Read changelog/migration guide for breaking changes
- Check compatibility of dependent packages
- Upgrade in a branch, fix breaking changes
- Run full test suite
- Update any deprecated config options
- Update documentation if APIs changed
Type 3: Dependency Upgrade (e.g., React 18 → 19)
Upgrading a core dependency that affects application code.
Workflow:
- Check compatibility matrix (React + React DOM + types)
- Review breaking changes and new features
- Upgrade dependencies together
- Fix breaking changes in application code
- Update any deprecated patterns
- Run E2E tests to verify functionality
Migration Workflow
Phase 1: Research and Planning
- Read official migration guides - Most tools publish upgrade guides
- Check GitHub issues - Look for known migration problems
- Identify scope:
- Which directories affected (
js/app/,js/, or both) - What config files need changes
- What dependencies to add/remove/upgrade
- What code changes are required
- Which directories affected (
- Review current configs - Understand existing setup before changing
- Check dependent packages - Ensure compatibility across the dependency tree
Phase 2: Create a Migration Branch
git checkout -b chore/migrate-<tool>-to-<version>
# or
git checkout -b chore/upgrade-<tool>-<version>
Phase 3: Install/Upgrade Dependencies
# For js/app/ (the app workspace package)
cd js/app && pnpm add -D <package>@<version>
# For js/ (workspace root)
cd js && pnpm add -D -w <package>@<version>
# For upgrading existing dependencies
cd js/app && pnpm update <package>@<version>
Tip: Keep old tool installed until migration is verified for tool replacements.
Phase 4: Update Configuration
For tool replacements - create new config:
Phoenix uses nested configs with inheritance where possible:
phoenix/
├── .<tool>rc.json # Shared base config
├── js/app/
│ └── .<tool>rc.json # Extends base, adds React-specific options
└── js/
└── .<tool>rc.json # Extends base, adds Node-specific options
Config inheritance pattern:
{
"$schema": "./node_modules/<tool>/configuration_schema.json",
"extends": ["../.<tool>rc.json"]
}
For version upgrades - update existing config:
- Check for deprecated options in the changelog
- Update or remove deprecated settings
- Add any new required settings
Phase 5: Fix Breaking Changes
Code changes:
- Fix type errors from stricter checks
- Update deprecated API usage
- Adapt to new syntax requirements
Config changes:
- Update deprecated config options
- Adjust for changed defaults
Tip: Use the tool's own CLI to identify issues:
pnpm run typecheck # TypeScript errors
pnpm run lint # Linter errors
pnpm run build # Build errors
Phase 6: Update Package Scripts
Update both `js/ap
Установить typescript-tooling-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл typescript-tooling-migration?
Migrate or upgrade TypeScript tooling in the Phoenix monorepo. Use when upgrading TypeScript versions, switching tools (ESLint to oxlint, Prettier to oxfmt), upgrading bundlers (Vite, esbuild), or making major dependency upgrades. Triggers on requests to migrate, upgrade, or replace TypeScript/JavaScript tooling.
Как установить скилл typescript-tooling-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typescript-tooling-migration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic