Demonstrates a bug with @wessberg/rollup-plugin-ts
where empty declarations are generated when using rollup cache
- Clone this repo
- Run
npm install
- Run
npm run build
, which will do the following:- Load rollup config, which checks for presence of cache file, which is absent this first run
- Bundles the index file with rollup
- Writes the bundle cache to disk
- Writes the bundle to disk
- Verify declarations in the
dist
directory are generated correctly; drink an 🍻 - Run
npm run build
(cache is now present) - Verify declarations in the
dist
directory are empty; cry some 😭