← 返回命令列表

Linux command

bun-link 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Register the current package

bun link

Link a globally registered package

bun link [package-name]

说明

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.

FAQ

What is the bun-link command used for?

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.

How do I run a basic bun-link example?

Run `bun link` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more bun-link examples?

This page includes 2 examples for bun-link, plus related commands for nearby Linux tasks.