DEV Community

Discussion on: How to Create and Publish a React Component Library

Collapse
 
alexeagleson profile image
Alex Eagleson • Edited

The output of the declaration files is covered in the "Adding Rollup" section. From this part of the rollup config in particular:

  {
    input: "dist/esm/types/index.d.ts",
    output: [{ file: "dist/index.d.ts", format: "esm" }],
    plugins: [dts()],
  },
Enter fullscreen mode Exit fullscreen mode
Collapse
 
kbradley profile image
Kristin Bradley

Ok thanks. I double checked and I have that in my rollup.config.js file.

Some comments have been hidden by the post's author - find out more