question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty .d.ts rollup emit regression in 1.2.28

See original GitHub issue
  • Version: 1.2.28
  • Rollup Version: 2.21.0
  • Operating System and version (if applicable): MacOS 10.15.5
  • Node Version (if applicable): 12.18.2
  • Does it work with tsc (if applicable): N/A
  • Typescript: 3.9.7

Reproduction

Using this plugin produces correct (as far as I can tell) .d.ts rollups for all submodules of velcro.

However, upon upgrading to 1.2.28, the emitted .d.ts files are empty and no errors appear to be emitted either.

Reproduction can be achieved by:

  1. Clone ggoodman/velcro#8f6063e43fe3fdc01d06fd38fb82455026bf8ed7
  2. npm i
  3. npx lerna bootstrap
  4. npm run build
  5. Observe that ./dist/dist-main/index.d.ts for ./packages/@velcro/bundler is empty.

All sub-packages defer to the top-level rollup factory in rollup.config.factory.js so you shouldn’t have to look further than that to see how this plugin is being instantiated.

Expected Behavior

Produces a rolled-up .d.ts file

Actual Behavior

Produces an empty .d.ts file without reporting any errors or warnings

Thanks for all your hard work on this!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wessbergcommented, Jul 28, 2020

v1.2.29 has been published now!

1reaction
wessbergcommented, Jul 20, 2020

Thanks for the update. Very strange indeed. I’ll clone your repo and see what I can make of it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

rollup-plugin-ts | Yarn - Package Manager
This plugin makes sure that the helper functions that may be emitted within the output generated by Typescript will not be duplicated across...
Read more >
rollup-plugin-dts leaves leftover d.ts files - Stack Overflow
I have a rollup typescript config using rollup-plugin-typescript and rollup-plugin-dts. I want to bundle all my d.ts files into one d.ts ...
Read more >
Rollup Plugin Typescript2: Compile TypeScript V2.0+. - Morioh
In this library, we will learn about the Rollup Plugin Typescript2: Compile TypeScript V2.0+. Rollup plugin for typescript with compiler errors.
Read more >
@proc7ts/rollup-plugin-flat-dts - npm package | Snyk
An important project maintenance signal to consider for @proc7ts/rollup-plugin-flat-dts is that it hasn't seen any new versions released to npm ...
Read more >
rollup-plugin-flat-dts - NPM Package Overview - Socket.dev
d.ts files flattener and Rollup plugin. Version: 2.0.0 was published by lorus. Start using Socket to analyze rollup-plugin-flat-dts and its ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found