-
Notifications
You must be signed in to change notification settings - Fork 8
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
Consider not releasing the sources as part of the package #185
Comments
The benefit of packing them is step-through debugging. This does come at a minor package-size cost, but imho it's worth having! |
Does it mean that it is a temporary situation until first stable release? |
No, this is useful for end-users as well as core developers. More complex issues might require a developer to trace exactly the path the interpreter takes. Especially when for example dealing with higher-order functions, you might need to see when/why Curveball calls one of your functions. Given that the cost is relatively low, I don't see a huge problem with this. Don't get me wrong, I love a small |
I'm not sure I understand your point. The TypeScript code present in |
Most debuggers can take the The purpose of the |
Do you mean that the source maps are included in the distributed npm package? |
Yep! |
I think I will close this ticket, but happy to discuss further if you feel like it. |
Current
@curveball/core
package comes with the compiled artifacts (the JavaScript files and the type definitions, insidedist
) but also comes with the TypeScript sources (insidesrc
). It looks like a deliberate move since thesrc
directory is explicitly present in thefiles
property of the project manifest.@curveball/core
is a runtime dependency for most projects, which means that its sources are present in the deployed environments even though they are totally useless there.I suggest that they are removed from the distributed package.
The text was updated successfully, but these errors were encountered: