Closed dwilches closed 3 years ago
Users need this for the migration script.
The migration is a one-time process. But after the migration is done, we keep dragging that dependency around.
Does it make sense to move the migration script to a second helper package?
Something like @.***/until-destroy-migration", which users can add, use, and then remove.
Thanks.
On Thu, Mar 18, 2021, 1:49 AM Netanel Basal @.***> wrote:
Users need this for the migration script https://github.com/ngneat/until-destroy#migration-from-view-engine-to-ivy .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ngneat/until-destroy/issues/151#issuecomment-801676583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6KR2NXJOVEZ3XNP2FMZEDTEGO5XANCNFSM4ZLEMWVA .
I'm running into the same issue at the moment. I'm using @ngneat/until-destroy
inside an Electron app and ts-morph
with it's 50 MB ends up in the final package but I don't see any purpose for it. @NetanelBasal Could you take a look at this issue again? Any help is highly appreciated!
You're welcome to submit a PR that separates it into a different package.
You're welcome to submit a PR that separates it into a different package.
Perfect, I'll look into this :-)
btw this version of ts-morph is introducing a vulnerability:
> npm audit --production
=== npm audit security report ===
# Run npm update glob-parent --depth 5 to resolve 1 vulnerability
Moderate Regular expression denial of service
Package glob-parent
Dependency of @ngneat/until-destroy
Path @ngneat/until-destroy > ts-morph > @ts-morph/common >
fast-glob > glob-parent
More info https://npmjs.com/advisories/1751
found 1 moderate severity vulnerability in 129 scanned packages
run `npm audit fix` to fix 1 of them.
Hey! I've published @ngneat/until-destroy@8.1.0
which doesn't depend on packages that are necessary for migration. The migration script is published as a separate package @ngneat/until-destroy-migration
.
Will close the issue for now, feel free to re-open if there're any issues.
We added this library to our project and we got several unexpected dependencies added to
node_modules
.Looking into what they were, we noticed some look like not needed for using your library, but only at compile time or development time.
For example, minimist is only used from here.
This is an incomplete list of the dependencies that were added to our node_modules while installing
@ng-neat/until-destroy
:Are all these 1st-party dependencies needed for your end-users to be able to use the library?
Thanks.