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

Source code should not be packed into the NPM package #200

Open
pavinduLakshan opened this issue Aug 7, 2023 · 0 comments
Open

Source code should not be packed into the NPM package #200

pavinduLakshan opened this issue Aug 7, 2023 · 0 comments

Comments

@pavinduLakshan
Copy link
Contributor

Is your suggestion related to an experience ? Please describe.

The bundled package in the NPM registry contains the uncompiled src directory as well in it, accounting for about 45KB/700KB, even though it brings no value to the end users.

image

In addition, the compiled types need to be in the dist directory itself or in a meaningful folder structure (eg: dist/types)

Screenshot 2023-08-07 at 21 44 25

Describe the improvement

src/ folder shouldn't be packed into the NPM package.

Additional context

N/A

@pavinduLakshan pavinduLakshan changed the title Source code should not get packed into the NPM package Source code should not be packed into the NPM package Aug 7, 2023
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

1 participant