Our typescript setup fails because of this. This was not the case in 17.2.0.
References to src are in files:
- @metamask/providers/dist/initializeInpageProvider.d.cts:1:22
- @metamask/providers/dist/MetaMaskInpageProvider.d.cts:1:22
- @metamask/providers/dist/StreamProvider.d.cts:1:22
You can also see this at npm
https://www.npmjs.com/package/@metamask/providers/v/17.2.1?activeTab=code
https://www.npmjs.com/package/@metamask/providers/v/17.2.0?activeTab=code
/// <reference path="../src/readable-stream.d.ts" />
was added at the beginning of the above files in the latest package.