bun-link
Symlink local packages for development
TLDR
SYNOPSIS
bun link [package-name]
DESCRIPTION
bun link creates symbolic links for local package development. The workflow has two steps:1. In the package directory, run bun link (without arguments) to register it as a globally available linked package.2. In the consuming project, run bun link [package-name] to create a symlink from node_modules to the registered package.This is useful for developing and testing local packages without publishing them to a registry. Changes to the source package are immediately reflected in any project that links to it.
CAVEATS
Linked packages must be built before linking if they require a build step. Changes to the linked package are immediately reflected in projects using it. Links are specific to the Bun package manager and are not shared with npm or yarn link registrations.
SEE ALSO
bun(1), bun-unlink(1), bun-install(1), npm-link(1)
