Ultimate

X_PACKAGE_UNREFERENCED

Means

a published workspace is not in the root tsconfig build graph

Typical cause

bun run typecheck is tsc -b, which builds referenced projects and nothing else — so a package no root references entry names compiles nowhere and the gate's typecheck step reports green over it. scripts/new-package.ts never added the entry and nothing asked for it. Private packages are exempt, and a root that declares no references at all is a repo that builds another way

Fix

the fix is the edit: add { "path": "./packages/<pkg>" } to "references" in tsconfig.json, then bunx tsc -b --pretty false

Listed under CLI and verify

This page as markdown