-
Notifications
You must be signed in to change notification settings - Fork 14
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
Specify additional sources when creating a package #858
base: main
Are you sure you want to change the base?
Specify additional sources when creating a package #858
Conversation
The problem you are trying to solve is having to copy-paste the jar file into the root directory before publishing, correct? |
Thanks for the review, @mbroecheler! That’s definitely an option. I personally feel that listing the sources fits within the scope of “what’s in the package.” However, I don’t have a strong preference and would be open to that approach. What concerns me more is that the current method combines the root and the additional sources from the manifest, which feels like a patchwork solution. What do you think about using |
How about a This seems the most user friendly approach since - in most cases - you just want to publish what is in the current directory. WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See @mbroecheler comments in main conversation
When publishing a package, files are taken from the package root. However, additional sources, like build-generated files (e.g., .jar), may need inclusion. For instance, when publishing a UDF, metadata is stored in the root, while the UDF itself is compiled into a .jar in the target folder. Instead of using a separate script to assemble the package before publishing, it is more robust to include additional sources directly in the package.json. See an example DataSQRL/sqrl-functions#1.