typescript-tooling-migration

arize-ai/phoenix

Миграция и обновление TypeScript-инструментов в монорепозитории Phoenix.

Звёзды12 337
Авторarize-ai
Установок8

Установка

SKILL.md

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 app/ and js/ directories.

Monorepo Structure

Phoenix has two TypeScript project directories that must stay in sync:

DirectoryPurposePackage Manager
app/React/TypeScript frontend (main Phoenix UI)pnpm
js/TypeScript packages monorepo (phoenix-client, phoenix-evals, etc.)pnpm (workspace)

Shared Dependencies

Both directories should use the same versions of shared tooling:

ToolSync EnforcedConfig Location
pnpmCI checkpackage.json → packageManager
TypeScriptCI checkpackage.json → devDependencies
oxlintCI checkpackage.json → devDependencies
oxfmtCI checkpackage.json → devDependencies

Config File Locations

ConfigLocationPurpose
.oxlintrc.jsonRoot + app/ + js/Linter config (nested inheritance)
.oxfmtrc.jsoncRootFormatter config (shared)
tsconfig.jsonapp/ and js/ packagesTypeScript config
vite.config.tsapp/Build/dev server config
relay.config.jsapp/GraphQL/Relay config

Migration Types

Type 1: Tool Replacement (e.g., ESLint → oxlint)

Complete replacement of one tool with another.

Workflow:

  1. Research new tool's migration guide
  2. Install new tool alongside old
  3. Create new config, verify it works
  4. Update package scripts
  5. Update pre-commit hooks
  6. Remove old tool and config
  7. Update documentation

Type 2: Major Version Upgrade (e.g., TypeScript 5 → 6)

Upgrading a tool to a new major version with breaking changes.

Workflow:

  1. Read changelog/migration guide for breaking changes
  2. Check compatibility of dependent packages
  3. Upgrade in a branch, fix breaking changes
  4. Run full test suite
  5. Update any deprecated config options
  6. Update documentation if APIs changed

Type 3: Dependency Upgrade (e.g., React 18 → 19)

Upgrading a core dependency that affects application code.

Workflow:

  1. Check compatibility matrix (React + React DOM + types)
  2. Review breaking changes and new features
  3. Upgrade dependencies together
  4. Fix breaking changes in application code
  5. Update any deprecated patterns
  6. Run E2E tests to verify functionality

Migration Workflow

Phase 1: Research and Planning

  1. Read official migration guides - Most tools publish upgrade guides
  2. Check GitHub issues - Look for known migration problems
  3. Identify scope:
    • Which directories affected (app/, js/, or both)
    • What config files need changes
    • What dependencies to add/remove/upgrade
    • What code changes are required
  4. Review current configs - Understand existing setup before changing
  5. 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 app/ (standard project)
cd app && pnpm add -D <package>@<version>

# For js/ (workspace root)
cd js && pnpm add -D -w <package>@<version>

# For upgrading existing dependencies
cd 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
├── 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:

  1. Check for deprecated options in the changelog
  2. Update or remove deprecated settings
  3. 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 app/package.json and js/package.json if script invocations changed:

{
  "scripts": {
    "lint": "<new-command>",
    "typecheck": "<new-command>"
  }
}

Phase 7: Update Pre-commit Hooks

Edit .pre-commit-config.yaml if the tool is used in pre-commit:

  1. Remove old tool's hook (for replacements)
  2. Update or add new hook:
- id: <tool>-app
  name: <tool> (app)
  entry: pnpm --dir app run <script>
  language: system
  files: ^app/.*\.[jt]sx?$
  pass_filenames: false
- id: <tool>-js
  name: <tool> (js)
  entry: pnpm --dir js run <script>
  language: system
  files: ^js/.*\.[jt]sx?$
  pass_filenames: false

Phase 8: Update Editor Settings

  1. Update .vscode/extensions.json if extensions changed
  2. Document any path/binary settings in DEVELOPMENT.md:
{
  "<extension>.path.<binary>": "app/node_modules/<package>/bin/<binary>"
}

Note: .vscode/settings.json is gitignored - document settings in DEVELOPMENT.md.

Phase 9: Remove Old Tool (for replacements)

# Remove old dependencies
cd app && pnpm remove <old-tool> <old-plugins>
cd js && pnpm remove -w <old-tool> <old-plugins>

# Delete old config files
rm app/<old-config> js/<old-config>

Phase 10: Test and Verify

# Type checking
cd app && pnpm run typecheck
cd js && pnpm run typecheck

# Linting
cd app && pnpm run lint
cd js && pnpm run lint

# Formatting
cd app && pnpm run fmt:check
cd js && pnpm run fmt:check

# Unit tests
cd app && pnpm test
cd js && pnpm run -r test

# Build
cd app && pnpm run build
cd js && pnpm run -r build

# E2E tests (for significant changes)
cd app && pnpm run test:e2e

# Pre-commit hooks
pre-commit run --all-files

Phase 11: Update Documentation

Files to check and update:

FileWhat to update
AGENTS.mdTool versions, commands, style conventions
DEVELOPMENT.mdSetup instructions, VS Code settings
app/README.mdTool references, test commands
.cursor/rules/typescript-packages/RULE.mdCommands, workflow instructions
.claude/settings.jsonPostToolUse hooks
CHANGELOG.mdNote significant tooling changes

Phase 12: Add/Update Version Sync Check

For shared dependencies, ensure .github/workflows/package-version-check.yml enforces consistency:

- name: Check <tool> version consistency
  run: |
    APP_VERSION=$(jq -r '.devDependencies.<tool> // empty' app/package.json)
    JS_VERSION=$(jq -r '.devDependencies.<tool> // empty' js/package.json)

    echo "app/package.json: <tool>@$APP_VERSION"
    echo "js/package.json: <tool>@$JS_VERSION"

    if [ -z "$APP_VERSION" ]; then
      echo "::error::app/package.json is missing <tool> in devDependencies"
      exit 1
    fi

    if [ -z "$JS_VERSION" ]; then
      echo "::error::js/package.json is missing <tool> in devDependencies"
      exit 1
    fi

    if [ "$APP_VERSION" != "$JS_VERSION" ]; then
      echo "::error::<tool> versions do not match!"
      exit 1
    fi

    echo "<tool> versions are consistent: $APP_VERSION"

Key Principles

Keep Directories in Sync

When upgrading shared tooling, always upgrade both app/ and js/ together. Version drift causes subtle bugs and CI failures.

Performance Matters

  • Measure before/after for build times, lint times, test times
  • Some compatibility layers (like JS plugins for linters) add significant overhead
  • Prefer native implementations over compatibility shims

Backwards Compatibility

  • Many tools support legacy config formats (e.g., oxlint supports eslint-disable comments)
  • Don't mass-update working code unless there's a clear benefit
  • Deprecation warnings are informational - fix them but don't block on them

Config Location Strategy

ScenarioApproach
Identical config for both dirsSingle root config
Shared base + dir-specific overridesRoot config + nested configs with extends
Completely different configs per dirSeparate configs (no inheritance)

Out of Scope Directories

These directories have their own tooling and should NOT be included in migrations:

  • scripts/docker/devops/oidc-server/ - Separate OIDC test server
  • scripts/mock-llm-server/ - Separate mock server
  • internal_docs/ - Internal documentation utilities

Troubleshooting

TypeScript Upgrade Issues

Stricter type checking: New TypeScript versions often add stricter checks. Fix errors by:

  1. Adding explicit type annotations
  2. Using type assertions where appropriate
  3. Updating tsconfig.json to temporarily relax checks if needed

Dependency type mismatches: Ensure @types/* packages are compatible with the new TS version.

Build Failures After Upgrade

  1. Clear caches: rm -rf node_modules/.cache app/dist js/**/dist
  2. Reinstall: pnpm install
  3. Rebuild: pnpm run build

Config Not Found

  • Check $schema path is relative to the config file location
  • For nested configs, verify extends path (e.g., "../.toolrc.json")

Editor Not Using Updated Tool

  1. Ensure extension is up to date
  2. Set explicit binary path in VS Code settings
  3. Reload VS Code window (Cmd+Shift+P → "Reload Window")

Pre-commit Hook Fails

  • Run pnpm install in both directories
  • Verify script name in package.json matches hook entry
  • Test script manually: pnpm --dir app run <script>

CI Fails But Local Passes

  • Check Node version matches CI (see .nvmrc)
  • Ensure lockfile is committed (pnpm-lock.yaml)
  • Run with --frozen-lockfile locally to match CI behavior

CI Workflows

Relevant CI files for TypeScript tooling:

WorkflowPurpose
.github/workflows/typescript-CI.ymlapp/ typecheck, lint, test
.github/workflows/typescript-packages-CI.ymljs/ build, test, lint
.github/workflows/package-version-check.ymlVersion sync enforcement
.github/workflows/playwright.yamlE2E tests

References

General

  • TypeScript Release Notes
  • React Release Notes
  • Vite Migration Guide

Current Tools

  • Oxlint docs
  • Oxfmt docs
  • pnpm docs

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: typescript-tooling-migration](https://darkplay.ru/ai/skills/arize-ai-phoenix-typescript-tooling-migration)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Build Error Resolveraffaan-m · Специалист по устранению ошибок сборки и TypeScript. Используйте ПРОАКТИВНО при сбое…
225 587 ★
Database Migrationaffaan-m · Каркас команды workflow для database-migration в everything-claude-code.
225 587 ★
Database Revieweraffaan-m · Специалист PostgreSQL: оптимизация запросов, схемы, безопасность, Supabase.
225 587 ★
Django Build Resolveraffaan-m · Специалист по ошибкам Django: pip/Poetry, миграции, импорты, collectstatic.
225 587 ★
Django Revieweraffaan-m · Ревьюер Django: ORM, DRF, миграции, безопасность и production-практики.
225 587 ★
Flutter Revieweraffaan-m · Ревьюер кода Flutter и Dart: виджеты, управление состоянием, идиомы и архитектура.
225 587 ★
Typescript Revieweraffaan-m · Ревьюер TypeScript/JavaScript: типы, async, безопасность Node/web.
225 587 ★
claude-opus-4-5-migrationanthropics · Перенос кода и промптов с Sonnet 4.x и Opus 4.1 на Opus 4.5.
34 комп.
ruflo-migrationsruvnet · Управление миграциями схемы: генерация, проверка, пробный запуск и откат миграций базы…
240 комп.
agentic-bundle-typescript-javascriptsickn33 · Установите набор редакционных навыков «TypeScript & JavaScript» для Claude Code.
49 917 ★

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8