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

View unused modules in a monorepo for dead code elimination #13

Open
ild0tt0re opened this issue Dec 15, 2022 · 1 comment
Open

View unused modules in a monorepo for dead code elimination #13

ild0tt0re opened this issue Dec 15, 2022 · 1 comment
Labels
core enhancement New feature or request

Comments

@ild0tt0re
Copy link

I would like to see unused modules so that I can easily remove dead code from the codebase.

Note:
Since the module can be used in NOT production code like tests, storybook and other tooling files, there should be an option to skip them

@antoine-coulon
Copy link
Owner

antoine-coulon commented Dec 19, 2022

Hey @ild0tt0re,

Thanks for submitting that feature request.

It is indeed the next feature planned before v1 is released, I'll probably open an issue where we can track the different milestones of that big feature.

Few milestones that I can see without even thinking about it are:

  • provide a new API to list all unused modules, with a possibility of filtering the glob pattern (since you were talking about targeting specific sets of tests)
  • provide a new API that automatically prunes unused modules using the first API (like 'ts-prune', but for all kind of files, not only typescript ones

Do you have any other ideas that could be valuable for Skott?

@antoine-coulon antoine-coulon added enhancement New feature or request road-to-v1 features planned to be added for v1 labels Dec 21, 2022
@antoine-coulon antoine-coulon added core and removed road-to-v1 features planned to be added for v1 labels Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants