microsoft / fluentui-contrib

Monorepo for contributor extension packages to Fluent UI
MIT License
31 stars 35 forks source link

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

Closed george-cz closed 4 months ago

george-cz commented 4 months ago

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.

Hotell commented 4 months ago

thanks for reporting thisi!

It's a regression introduced by swc bump ( https://github.com/microsoft/fluentui-contrib/pull/191 )

https://github.com/swc-project/cli/issues/281