new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Bun · Package manager · all subjects

link: local package workflow

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

bun link basic syntax and workflow

Run `bun link` in a local package directory to register it as a linkable package. This makes the package available to be linked into other projects. The command must be executed from the root directory of the package you want to link.

bun link to add linked package to another project

Run `bun link <package-name>` in a target project directory to link a previously registered local package into that project. This creates a symlink in the target project's `node_modules` directory pointing to the local package directory.

bun link with --save flag

The `--save` flag with `bun link <package-name>` adds the package to the `dependencies` field of the target project's package.json with the version specifier `link:<package-name>`, which tells Bun to load from the registered local directory instead of installing from npm.

link: protocol in package.json

The `link:` protocol is used in package.json dependencies to specify that a package should be loaded from a locally linked directory. The format is `"package-name": "link:package-name"`.

bun unlink to unregister local package

Run `bun unlink` in the root directory of a local package to unregister it and remove it from the linkable packages registry.

bun link output format

When `bun link` successfully registers a package, it outputs success confirmation with the package name and instructions on how to use it in other projects, either via `bun link <package-name>` command or by adding it to package.json with the `link:` protocol.

Give your agent this brain