jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.52k stars 21 forks source link

Allow to exclude workspace' packages by paths #123

Open AndreaPontrandolfo opened 1 week ago

AndreaPontrandolfo commented 1 week ago

Now that typesync works seamlessly in monorepos, there are multiple package.json that gets scanned. But it would be very useful to have the option to exclude certain projects/packages by path.


// .typesyncrc
{
  "ignoreProjects": ["apps/acme-docs"]
}
jeffijoe commented 1 week ago

@lishaduck monorepo support is your baby, want to take a stab at this? 😄

lishaduck commented 1 week ago

Hmmm. Shouldn't be to bad. School's a bit hectic, but if I can find some time, I'll take a look.

Ought to just be reading the exclusions and adding a .filter() call to one of these two functions (either one would work): https://github.com/jeffijoe/typesync/blob/511cf396865b251a3a6a9875010c4dccded8a2df/src/workspace-resolver.ts#L95-L125

At this point, I should just write it 🙃