krislefeber / nestjs-dataloader

Dataloader plugin for NestJS
https://krislefeber.github.io/nestjs-dataloader/
MIT License
148 stars 45 forks source link

Missing types in 9.0.0 #60

Open dhritzkiv opened 2 years ago

dhritzkiv commented 2 years ago

Thanks for merging + publishing support for nestjs v9.

Unfortunately, there is an issue that prevents it from working out of the box: the typings files are not properly referenced.

In v2.0.11 (the previous version of the library), the types field in package.json referenced ./dist/index.d.ts.

However, in v9.0.0 (the current version), the types field references index.d.ts (note the lack of dist). Meanwhile, the index.d.ts file is still in dist.

I suspect reverting the change to the types field to reference ./dist/index.d.ts will fix it. Strangely, though, I don't see anywhere in the repo's history where the files field was changed – the repo version of 2.0.11 differs from the published version of 2.0.11.

dhritzkiv commented 2 years ago

Further, I noticed that the package.json file in the repo is still 2.0.6, not 9.0.0, nor even 2.0.11.