Skip to content

feat(script): respect npm_config_registry for version lookup#11388

Open
bbartels wants to merge 4 commits intoanomalyco:devfrom
bbartels:patch-2
Open

feat(script): respect npm_config_registry for version lookup#11388
bbartels wants to merge 4 commits intoanomalyco:devfrom
bbartels:patch-2

Conversation

@bbartels
Copy link
Copy Markdown
Contributor

What does this PR do?

The script fetches from registry.npmjs.org to get the latest published version, but ignores the user's configured npm registry. This reads from npm_config_registry env var (automatically set by npm/bun from user config) and falls back to the default.

Useful for airgapped environments or internal mirrors.

How did you verify your code works?

npm config set registry https://internal-mirror/
bun run script/build.ts

Fixes: #11387

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@bbartels
Copy link
Copy Markdown
Contributor Author

@rekram1-node Could i have a quick review? :)

@bbartels bbartels closed this Apr 1, 2026
@bbartels bbartels reopened this Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version lookup ignores configured npm registry

1 participant