-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Include missing licenses in /build
folder or omit the folder from distributed package
#4194
Comments
I've digged a bit deeper into the packaging process, and in my understanding the So I hope that a simple re-packaging in a clean directory and a re-publish as e.g. |
The additional package.json file, which was copied to build/cjs/package.json, did hide the parent one, leading to several issues and providing no real feature. The other one, copied to build/esm/package.json, is needed though, to enforce the module type. Related: - socketio/socket.io#4194 - #1513
The additional package.json file, which was copied to build/cjs/package.json, did hide the parent one, leading to several issues and providing no real feature. The other one, copied to build/esm/package.json, is needed though, to enforce the module type. Related: - socketio/socket.io#4194 - socketio/socket.io-client#1513
Thanks for the update and the new version! |
@jschirrmacher that's weird, I'm not able to reproduce: https://github.com/socketio/socket.io-fiddle/tree/issues/socket.io/4194
And I haven't found any reference to a cache at https://github.com/codepunkt/webpack-license-plugin. |
Thanks for trying to reproduce! |
@jschirrmacher great, thanks for the workaround! I get this can be closed now. |
Discussed in #4179
Originally posted by riesel November 24, 2021
We are including the socket.io-client package from https://www.npmjs.com/package/socket.io-client in our vue.js frontend.
There we are using webpack-license-plugin to scan for licenses in dependencies in our project.
This worked fine for socket.io-client versions < v4.4.0. From 4.4.0 on we see that the content of package.json in e.g. build\csj\ directory changed and now contains name and version information. Since it does not contain license information, webpack-license-plugin reports a missing license.
My question is whether the build directory has to be packaged at all or can be omitted to avoid this issue?
The text was updated successfully, but these errors were encountered: