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

Make it possible to specify which includes to remove, rather than removing all #31

Closed
emattias opened this issue Apr 5, 2022 · 1 comment

Comments

@emattias
Copy link

emattias commented Apr 5, 2022

Our include in tsconfig.json looks something like this:

  "include": [
    "app/**/*",
    "tests/**/*",
    "types/**/*",
    "lib/library-abc/**/*",
    "foo/**/*"
  ]

We dont want app/**/* and tests/**/* to be included when tsc-files runs in the git hook but the other ones have types needed for parts of our project.

One solution could be that you could send in to tsc-files which includes to remove rather than removing all includes, like is done now.

Maybe something like:

tsc-files --remove-include="app/**/*" --remove-include="tests/**/*"`

or

tsc-files --remove-include="app/**/*,tests/**/*"`
@gustavopch
Copy link
Owner

Same as #20.

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

No branches or pull requests

2 participants