Skip to content
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

[BUG] Remove the SRC and Readme from dist folder #724

Open
patrickalima98 opened this issue Feb 19, 2024 · 2 comments
Open

[BUG] Remove the SRC and Readme from dist folder #724

patrickalima98 opened this issue Feb 19, 2024 · 2 comments

Comments

@patrickalima98
Copy link

Describe the bug
I'm using this library with a serverless environment, with Deno Deploy and it's working great!
But I noticed that there are some unnecessary folders and files in the npm published version. These files are:

-src
-CHANGELOG.md

  • README.md

The main problem with this is that the README.md is 450 KB and the SRC folder is 83 KB. Since serverless is cold start, the final library storage size is 854 KB, very close to 1 MB!

So I would like to know if it is possible to ignore these folders and files in upcoming and future versions of rambda to help improve performance on serverless platforms like Deno Deploy, as the size of each library contributes to cold start.

Context(which version of library)
9.1.0

@patrickalima98
Copy link
Author

Edit: If necessary, I can open a PR, let me know!

@selfrefactor
Copy link
Owner

Thanks for opening this issue. I will try to use DenoDeploy for myself to see what can be done so that the main release structure remains the same.
if there is .denoignore, that could help. src files are good to have as it allows same release for web and node so we'll have to think how to make Deno specific release, maybe if it possible to release from a branch different than master.

I am open to manual action, i.e. no need to have a automated procedure for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants