An isolated install of a tarball built from 006c24e exposes a broken published CLI alias. The package manifest maps bun-router to ./dist/cli.js but maps router to ./bin/cli.ts. That TypeScript wrapper imports ../src/cli/index, and the published files omit src.
Reproduced with a real build, bun pm pack, and bun install of the tarball into a fresh consumer outside the repository:
bun node_modules/.bin/router --help
error: Cannot find module '../src/cli/index' from '.../node_modules/@stacksjs/bun-router/bin/cli.ts'
bun node_modules/.bin/bun-router --help
router/0.1.11
Usage:
$ router <command> [options]The archive contains the TypeScript bin wrapper but not its source imports. Point both published aliases at the same built, shebang-equipped dist/cli.js; keep the source wrapper for development/compilation. Validate both aliases, root/container entry imports and real routing from a newly packed isolated installation. Do not add source files to the package just to hide the broken mapping.
Found while checking the package artifact for the unpublished routing optimizations tracked downstream in stacksjs/stacks#2450 and stacksjs/stacks#2462. Source tests alone did not cover the packaged alias.