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 path to main #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rbergheim
Copy link

Remove cd lib from push script, which caused index.js to end up in the root of the package.

This caused problems for us when trying to switch from webpack to vite. Apparently webpack manages to find index.js even if the path in package.json does not match the file location, but vite does not. We have a dependency to @cabify/prom-react which has a dependency to promjs.

This has been tested by publishing to npm with a different package name and overriding in our project.

The fix was suggested by @smithamax

Fixes #23

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.

Can't import as expected
1 participant