Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants