Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update build to preserve modules and use @rollup/plugin-typescript #329

Merged
merged 1 commit into from
Aug 7, 2022

Conversation

WesSouza
Copy link
Member

@WesSouza WesSouza commented Jul 28, 2022

This changes the main output to also preserve modules, allowing tree shaking when users build their projects.

This also replaces rollup-plugin-dts with the more traditional @rollup/plugin-typescript, which exports type declarations for individual files fixing issues with themes imports.

It also adds missing displayName to Select, Toolbar, TreeView and WindowHeader, as well as improves the return type generics of Select and TreeView.

Closes #346, #347.

@vercel
Copy link

vercel bot commented Jul 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react95 ✅ Ready (Inspect) Visit Preview Aug 6, 2022 at 3:23PM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 28, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 841f273:

Sandbox Source
React95 template Configuration

@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 025bb90 to 3c58be3 Compare July 29, 2022 12:01
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 3c58be3 to 62a8838 Compare July 29, 2022 12:04
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 62a8838 to 7c53e29 Compare July 29, 2022 12:22
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 7c53e29 to b4eec70 Compare July 29, 2022 14:47
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from b4eec70 to 40c8e58 Compare July 30, 2022 14:25
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 40c8e58 to 187c2ef Compare August 4, 2022 10:22
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 187c2ef to 8d06039 Compare August 4, 2022 10:28
@WesSouza WesSouza requested a review from arturbien August 4, 2022 13:59
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 8d06039 to 3587ed2 Compare August 4, 2022 19:53
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 07d10e2 to 80c79f8 Compare August 4, 2022 20:09
@WesSouza WesSouza added the bug Something isn't working label Aug 5, 2022
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 80c79f8 to 76a71a9 Compare August 5, 2022 22:36
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from 76a71a9 to fea305a Compare August 5, 2022 22:50
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from fea305a to a6f55dc Compare August 5, 2022 22:59
@WesSouza WesSouza force-pushed the build-plugin-typescript branch from a6f55dc to f2499fd Compare August 5, 2022 23:10
@WesSouza WesSouza changed the title build: update build so that themes declarations are exported build: update build to preserve modules and use @rollup/plugin-typescript Aug 5, 2022
rollup.config.js Outdated
input: './src/index.ts',
{
...baseBundle,
input: ['./src/index.ts', './src/types.tsx'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturbien @luizbaldi apparently types breaking on the consumers was caused by types not being exported.

…ript

This changes the main output to also preserve modules, allowing tree shaking when users build their projects.

This also replaces rollup-plugin-dts with the more traditional @rollup/plugin-typescript, which exports type declarations for individual files fixing issues with themes imports.
@arturbien arturbien merged commit 7efe96c into react95-io:beta Aug 7, 2022
@WesSouza WesSouza deleted the build-plugin-typescript branch August 7, 2022 11:36
@github-actions
Copy link

🎉 This PR is included in version 4.0.0-beta.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants