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

[Bug][P0]: Failed to resolve entry for package - extra src directory in lib after build and publish #198

Closed
george-cz opened this issue Jul 12, 2024 · 1 comment · Fixed by #199
Assignees
Labels
bug Something isn't working

Comments

@george-cz
Copy link
Contributor

george-cz commented Jul 12, 2024

Recently I did an upgrade of react-resize-handle, everything worked locally, but it could not be added as a dependency to a project, complaining about invalid path to entry point.

image

With more examination we discovered that there is an extra src directory in the lib folder of the published package (open "lib"):
https://www.npmjs.com/package/@fluentui-contrib/react-resize-handle/v/0.3.0?activeTab=code
which is not accounted for in the package.json entrypoint. This results in the package being unusable.

For comparison, this is the previous version (open "lib"):
https://www.npmjs.com/package/@fluentui-contrib/react-resize-handle/v/0.2.0?activeTab=code

Running build locally seems to produce the correct folder structure.

This probably affects all of the contrib packages and is most likely a result of recent changes in the CI/CD pipeline.

@george-cz george-cz added the bug Something isn't working label Jul 12, 2024
@Hotell
Copy link
Contributor

Hotell commented Jul 12, 2024

thanks for reporting thisi!

It's a regression introduced by swc bump ( #191 )

swc-project/cli#281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants