unsplash / unsplash-js

🤖 Official JavaScript wrapper for the Unsplash API
https://www.npmjs.com/package/unsplash-js
MIT License
2.15k stars 158 forks source link

Build generates inconsistent declarations #167

Open OliverJAsh opened 3 years ago

OliverJAsh commented 3 years ago

Steps to Reproduce

Observed Behaviour

Declarations should be consistent and correct.

Expected Behaviour

They are not consistent because of a cache, provided by rollup-plugin-typescript2.

Technical Notes

To workaround this, always run this before building:

rm -rf node_modules/.cache/rollup-plugin-typescript2/

This is another reason to ditch tsdx.

tanishqkancharla commented 3 years ago

You can make even more of a workaround by changing the build script in package.json to rm -rf node_modules/.cache/rollup-plugin-typescript2/ && tsdx build so you don't forget