Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): incorrect main entry in package.json #1351

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

Martin005
Copy link
Contributor

This PR fixes the incorrect main entry in package.json of @lingui/cli. This was causing Bundlephobia to report EntryPointError on the new 3.16.0 version of the package.

@vercel
Copy link

vercel bot commented Jan 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
js-lingui ✅ Ready (Inspect) Visit Preview Jan 19, 2023 at 7:04PM (UTC)

@github-actions
Copy link

size-limit report 📦

Path Size
./packages/core/build/esm/index.js 2.89 KB (0%)
./packages/detect-locale/build/esm/index.js 804 B (0%)
./packages/react/build/esm/index.js 2.61 KB (0%)
./packages/remote-loader/build/esm/index.js 7.37 KB (0%)

@andrii-bodnar andrii-bodnar merged commit cd430f3 into main Jan 20, 2023
@andrii-bodnar andrii-bodnar deleted the fix/main-entry-cli branch January 20, 2023 07:57
@timofei-iatsenko
Copy link
Collaborator

timofei-iatsenko commented Jan 20, 2023

That's wrong fix, you exposed something which should not be exposed. To make it Right you should delete main and exports[.] entries, because this package is not going to be consumed any other way other than from 'bin'

Your fix saying is literally saying "hey, I have consumable entrypoint" for everyone, which actually is not.

Also report for CLI on bundlephobia is useless, no one is going to actually bundle a cli tool

@timofei-iatsenko
Copy link
Collaborator

@andrii-bodnar @Martin005 fyi

@andrii-bodnar
Copy link
Contributor

andrii-bodnar commented Jan 23, 2023

makes sense 🤔

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.

3 participants