tsdjs / tsd

Check TypeScript type definitions
MIT License
2.39k stars 68 forks source link

Add flag for typings file to cli #93

Closed tmueller closed 2 years ago

tmueller commented 3 years ago

Work has started, that allows to specify the typings file manually. Currently this is implemented for the tsd function but not for the tsd cli. This PR adds a flag to cli for specifying a typings file.

1natsu172 commented 3 years ago

@SamVerschueren Sorry for the ping. This PR will fix the issue#84.

Issue #84 is due to the difference between the types field in the default value of package.json and the actual location of .test-d.ts. The root cause is that the typingsFile option cannot be set from the cli argument. This PR should solve the problem.

anthonyjoeseph commented 2 years ago

Out of curiosity, why was this PR closed? It would be super useful to me personally