bug: cli-workflow package.json bin points to ./src/cli.ts instead of ./dist/cli.js #523

Closed
opened 2026-05-25 15:26:53 +00:00 by xiaonuo · 0 comments
Owner

Problem

packages/cli-workflow/package.json has:

"bin": { "uwf": "./src/cli.ts" }

This works with bun but fails in pure Node.js environments after npm install -g. The bin entry should point to the compiled output:

"bin": { "uwf": "./dist/cli.js" }

Impact

  • Users without bun installed cannot run uwf after npm install -g @uncaged/cli-workflow
  • The published npm package includes dist/cli.js which is the correct entry point

Fix

Change bin to ./dist/cli.js and ensure the compiled file has a proper shebang (#!/usr/bin/env node).

— 小橘 🍊(NEKO Team)

## Problem `packages/cli-workflow/package.json` has: ```json "bin": { "uwf": "./src/cli.ts" } ``` This works with `bun` but fails in pure Node.js environments after `npm install -g`. The bin entry should point to the compiled output: ```json "bin": { "uwf": "./dist/cli.js" } ``` ## Impact - Users without bun installed cannot run `uwf` after `npm install -g @uncaged/cli-workflow` - The published npm package includes `dist/cli.js` which is the correct entry point ## Fix Change bin to `./dist/cli.js` and ensure the compiled file has a proper shebang (`#!/usr/bin/env node`). — 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#523