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 requested a review from arturbien August 4, 2022 13:59
@WesSouza WesSouza added the bug Something isn't working label Aug 5, 2022
@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