Open uanid opened 5 months ago
https://bun.sh/docs/runtime/bunfig#install-scopes
[install.scopes.myorg]
token = "redacted"
url = "https://npm.pkg.github.com/"
[install.scopes."myorg-devops"]
token = "redacted"
url = "https://myorg-devops-12345678.d.codeartifact.ap-northeast-1.amazonaws.com/npm/myorg-npm-packages/"
[install.scopes."myorg-platform"]
token = "redacted"
url = "https://myorg-platform-12345678.d.codeartifact.ap-northeast-1.amazonaws.com/npm/myorg-platform/"
@sirenkovladd
https://bun.sh/docs/runtime/bunfig#install-scopes
[install.scopes.myorg] token = "redacted" url = "https://npm.pkg.github.com/" [install.scopes."myorg-devops"] token = "redacted" url = "https://myorg-devops-12345678.d.codeartifact.ap-northeast-1.amazonaws.com/npm/myorg-npm-packages/" [install.scopes."myorg-platform"] token = "redacted" url = "https://myorg-platform-12345678.d.codeartifact.ap-northeast-1.amazonaws.com/npm/myorg-platform/"
I understand that the @ prefix is not necessary. However, $ bun install
works fine in my computer even with the @ prefix.
Additionally, despite replacing the default registry with my private registry, I confirmed through the error message that API requests are still being sent to registry.npmjs.org
.
[install]
[registry]
token = "redacted"
url = "https://myorg-devops-12345678.d.codeartifact.ap-northeast-1.amazonaws.com/npm/myorg-npm-packages/"
What version of Bun is running?
1.1.10
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
$ bun run entry.ts
My .bunfig.toml
Entry.ts
What is the expected behavior?
Bun resolves private modules.
What do you see instead?
Additional information
I confirmed that
$ bun install
correctly accesses my private registry.The issue only occurs when using the
$ bun run
command.Additionally, the problem persists even with the configuration set up as follows: