Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes GitHub Copilot modernization for JavaScript and TypeScript developers, an AI-assisted tool that helps you upgrade npm packages in your projects.
GitHub Copilot modernization for JavaScript/TypeScript is available as part of the GitHub Copilot modernization extension for Visual Studio Code and Visual Studio. Built on GitHub Copilot agent mode, this tool analyzes your project, suggests an upgrade plan, and automatically upgrades npm packages to their latest versions. It also helps you apply necessary code changes to accommodate breaking changes or new APIs.
Key capabilities
- Project analysis: Analyzes files like
package.jsonto understand your project's current state and dependencies. - Upgrade planning: Suggests an upgrade plan and provides transparent recommendations before making changes.
- Package upgrades: Automatically upgrades npm packages to their latest versions by modifying
package.jsonand running the appropriate package-manager commands for your project (such asnpm install,npm update,pnpm install, oryarn install). - Code remediation: Helps apply code changes needed for breaking changes or new APIs introduced in upgraded packages.
- Interactive experience: Works through an interactive Copilot Chat experience in your IDE, walking you through changes with questions and confirmations.
The tool uses GitHub Copilot under the hood to provide intelligent, context-aware assistance throughout the upgrade process. Behind the scenes, it operates through an iterative loop: analyze, change, verify (build and check), then repeat as needed.
Limitations
The tool is currently optimized for single-project scenarios. For monorepos or workspaces with multiple package.json files, only the first detected project is targeted. To upgrade multiple projects, open each project folder separately.
Get started
To begin upgrading your JavaScript or TypeScript project with GitHub Copilot modernization, see Quickstart: Upgrade npm packages in a JavaScript or TypeScript project by using GitHub Copilot modernization.
For answers to common questions, see GitHub Copilot modernization for JavaScript/TypeScript FAQ.