Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build generates inconsistent declarations #167

Open
OliverJAsh opened this issue Mar 17, 2021 · 1 comment
Open

Build generates inconsistent declarations #167

OliverJAsh opened this issue Mar 17, 2021 · 1 comment

Comments

@OliverJAsh
Copy link
Member

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.

@tanishqkancharla
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants