Bun - Private Packages
When Aikido updates dependencies in repositories that use private packages, it needs access to those packages to correctly update your lockfiles. You can configure Aikido to authenticate with your private NPM registry to run these updates.
Prerequisites
Bun can use either .npmrc or bunfig.toml. See the NPM documentation for more information about .npmrc.
Configuring bunfig.toml
bunfig.tomlPrivate package access is defined in a bunfig.toml file in your project. See the Bun documentation here.
If a bunfig.toml file is set in Aikido, we write the bunfig.toml file next to your bun.lock file before updating the dependencies. If the bunfig.toml file is pressent in the repository, it will be overwritten by the .bunfig.toml file set in Aikido.
Configuration in Aikido
To allow repositories using private packages to be updated, provide your private registry configuration in the Aikido UI. Aikido stores the credentials encrypted and credentials cannot be retrieved through the Aikido UI or API.
Go to Autofix > Settings in Aikido, here.
Click on "Connect Registry", and the selection modal will now be shown.

Select Bun to input your
bunfig.tomlfile. (Note that for.npmrc, you will need to select NPM.)

Fill in the contents of the
bunfig.tomlfile. The example shows a configuration for a scoped package (@piedpiper) hosted on GitHub Packages.Click "Connect Registry" to save the configuration.
Last updated
Was this helpful?