Description
The script in packages/script/src/index.ts hardcodes https://registry.npmjs.org when fetching the latest published version to calculate the next version number.
This ignores the user's npm configuration, making it impossible to build in airgapped environments or when using an internal npm mirror.
Expected behavior
Script should respect the user's configured npm registry via npm_config_registry env var (standard npm/bun behavior).
Current behavior
Always fetches from https://registry.npmjs.org regardless of npm configuration.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
The script in
packages/script/src/index.tshardcodeshttps://registry.npmjs.orgwhen fetching the latest published version to calculate the next version number.This ignores the user's npm configuration, making it impossible to build in airgapped environments or when using an internal npm mirror.
Expected behavior
Script should respect the user's configured npm registry via
npm_config_registryenv var (standard npm/bun behavior).Current behavior
Always fetches from
https://registry.npmjs.orgregardless of npm configuration.Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response