Fix an issue bundling our copy of the Backbone types.

Review Request #12794 — Created Jan. 20, 2023 and submitted

Information

Spina
master

Reviewers

We were using the dts rollup plugin when attempting to bundle our fork
of the Backbone types, but this plugin ends up rewriting those. This is
a problem for the particular setup in the Backbone types file. What we
really wanted to do was just copy it as-is.

This change does exactly that. We now use rollup-plugin-copy to just
simply copy anything in src/@types into lib, preserving it as-is.

This fixes issues with using Spina with TypeScript when using the built
package.

Built a package and consumed it successfully without typing issues.

Summary ID
Fix an issue bundling our copy of the Backbone types.
We were using the dts rollup plugin when attempting to bundle our fork of the Backbone types, but this plugin ends up rewriting those. This is a problem for the particular setup in the Backbone types file. What we really wanted to do was just copy it as-is. This change does exactly that. We now use `rollup-plugin-copy` to just simply copy anything in `src/@types` into `lib`, preserving it as-is. This fixes issues with using Spina with TypeScript when using the built package.
0a34d3afc4b966a6c361edffac77f6f8a4d44b28
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...