-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[Vite] Project Crystal - Vite build not copy lib package json to output directory #21758
Comments
I'm facing the same issue.
|
Hello, same issue here 👋🏼
Creating a react library with this command :
|
If I want to copy the
Why using the command below doesn't generate correct configuration for publishable libs ?
|
It looks like The same but with |
same here. |
Same same, no package in dist using vite with
|
also running into this issue
|
I'm also running into this issue. My workaround is to install the import copy from 'rollup-plugin-copy';
// ... rest of config file ...
plugins: [
copy({
targets: [
{ src: 'package.json', dest: '../../dist/libs/shared' }
],
hook: 'writeBundle'
})
] Here a commit in an example repo demonstrating the workaround. |
Thank you for bringing this issue to our attention! I want to assure you that I will take a look as soon as I can. |
FYI migrating from Nx 19.0.2 to 19.2.0 fixed this issue for me, so thanks to whoever resolved this! |
It would have been part of this: #23908 Glad it resolved your problem! |
Current Behavior
I create a new workspace with Nx 18.0.3 with a react library
build command ran without issues but the output folder not contains the package.json file required for publish the library...
I also override the default build target without success
Expected Behavior
package.json should be present in the output directory
GitHub Repo
No response
Steps to Reproduce
Nx Report
The text was updated successfully, but these errors were encountered: