Skip to content

fix(storybook): drop ./ prefix from bin path - #340

Merged
PyPranav merged 2 commits into
trunkfrom
aalter/fix-storybook-bin-prefix
Oct 21, 2026
Merged

PyPranav merged 2 commits into
trunkfrom
aalter/fix-storybook-bin-prefix

Conversation

@alsoalter85

Copy link
Copy Markdown
Contributor

What

Removes the ./ prefix from the bin entry in packages/crrt-storybook/package.json (./dist/cli.js → dist/cli.js).

Why

npm 11 normalizes the path at publish time anyway and emits a misleading warning:

npm warn publish "bin[crrt-storybook]" script name dist/cli.js was invalid and removed

The entry is not actually removed — npm just strips the prefix. Verified in @npmcli/package-json/lib/normalize.js, and the live 0.1.0 package on npm has the bin intact ({ crrt-storybook: 'dist/cli.js' }).

Cosmetic only — silences the warning in future CI publishes. Seen in https://github.com/thedesignproject/CRRT/actions/runs/38770591595

@alsoalter85
alsoalter85 marked this pull request as ready for review October 16, 2026 13:06
@alsoalter85
alsoalter85 requested a review from PyPranav October 16, 2026 13:06
@github-actions
github-actions Bot temporarily deployed to Preview (PR #340) October 16, 2026 13:07 Destroyed
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Vercel preview

View deployment

Commit: fa97d12c04b7e55036e7d3eafad79fb371329a6b

@PyPranav PyPranav left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the bin path normalization. Both paths normalize identically in npm, and all reported checks pass. No blocking issues found.

@PyPranav
PyPranav merged commit 93748d4 into trunk Oct 21, 2026
7 checks passed
@PyPranav
PyPranav deleted the aalter/fix-storybook-bin-prefix branch October 21, 2026 15:30

This branch was successfully deployed

1 active deployment
Preview (PR #340) — fa97d12c Deployed Oct 21, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants