Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(@turbo/codemod): add support for custom NPM registries #9803

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Meligy
Copy link

@Meligy Meligy commented Jan 25, 2025

Fixes #4152

Description

NPM (and alternative tools like PNPM) pass the registry as an environment variable npm_config_registry.

This allows the codemod package to use it when present (which is often the case).

Testing Instructions

  • Go to turbo-codemod
  • Run turbo run build
  • Invoke the binary dist/cli.js migrate --to=latest --force (maybe play with other to values also)

@Meligy Meligy requested a review from a team as a code owner January 25, 2025 12:38
@turbo-orchestrator turbo-orchestrator bot added needs: triage New issues get this label. Remove it after triage pkg: turbo-codemod labels Jan 25, 2025
Copy link

vercel bot commented Jan 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 25, 2025 1:22pm

Copy link

vercel bot commented Jan 25, 2025

Someone is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage pkg: turbo-codemod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[turborepo] Update codemod doesn't support custom registries and fails if NPM registry is unavailable
1 participant