tsdjs / tsd

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

Make package more configurable #132

Closed nandi95 closed 1 year ago

nandi95 commented 2 years ago

I wish all options were available as an argument to the tsd command, as a workaround now I have to have

"tsd": {
    "directory": "tests"
},

in my package json while also calling tds programmatically so i can give it the typingsFile argument:

const diagnostics = await tsd({
    cwd: process.cwd(),
    typingsFile: 'src/index.ts'
});