unsplash/unsplash-js

Build generates inconsistent declarations

OliverJAsh opened this issue · 1 comments

Steps to Reproduce

  • Run yarn build

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.

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