rxjs-spy
rxjs-spy copied to clipboard
No .d.ts types in esm directory of the package makes TypeScript fail to import rxjs-spy
I'm using ESM modules and moduleResolution
equal to bundler
in my tsconfig.json
. This is quite edge and only available in the latest version of the TypeScript.

The issue this brings for me in my codebase:
The solution is to add types
section in package.json
:
Adding index.d.ts
to esm
folder with export * from '../cjs'
also works. 👍