jazimabbas / mock-typeorm

MockTypeORM - Never hit the database again while testing.
https://mock-typeorm-docs.vercel.app
MIT License
3 stars 1 forks source link

Typescript Typings Not Initialized #3

Open sloughrey opened 2 months ago

sloughrey commented 2 months ago

Issue Description

I'm not sure if this issue is more relating to my own application setup or not but for some reason when I install this package, I cannot import it as it says CAnnot find module 'mock-typeorm' or its corresponding type declarations,

If I copy your /types/index.d.ts into the esm and cjs directories and update the include path to point to ../types/mock-typeorm.d.ts file, everything starts to work.

Does this happen to you if you try to install the package on a fresh project?

Expected Result

jazimabbas commented 2 months ago

It never happens to me. But I'll look into it today or tomorrow and will fix this issue ASAP. Sorry for inconvenience.