microsoft/DefinitelyTyped-tools

`@definitelytyped/dtslint` version '0.0.183' requires notNeededPackages.json file to exist

kamontat opened this issue · 6 comments

Invoking: dtslint types
dtslint@0.0.183
Error: ENOENT: no such file or directory, open '<path>/notNeededPackages.json'
Returned error code: 1
"<project_name>" failed to build.

Where are you trying to run this tooling outside of DefinitelyTyped itself? It's likely you will be better served by a tool like tsd or eslint-plugin-expect-type.

@jakebailey Yes, I would like to test against multiple typescript versions (basically I would like to have my own DefinitelyTyped/DefinitelyTyped for internal usage)

BTW tsd you mean this one right?

ref: https://github.com/tsdjs/tsd

Yes, though I guess that tool doesn't check multiple versions. What aspect are you looking for? Just expect type? All of the other stuff is going to be somewhat DT specific, and we have recently greatly changed the layout of DT.

@jakebailey Yes, just expect type.

Yeah, but unfortunately tsdjs/tsd#47 isn't yet fixed, so it's somewhat of a challenge.

I suspect that if we were to fix the notNeededPackages thing, you'd just butt up against a new issue introduced by the huge pnpm monorepo migration, unfortunately.

Hi @jakebailey, I'm having pretty much the same issue, in more details here: #850