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

Fix importing error for reexported adapters #1634

Merged
merged 1 commit into from
Apr 11, 2020

Conversation

dmtrKovalenko
Copy link
Member

This PR closes #1627

Description

In order to make esm build work we need to provide separate package.json for each of adapter folder

@vercel
Copy link

vercel bot commented Apr 10, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/mui-org/material-ui-pickers/am4mh3rh6
✅ Preview: https://material-ui-pickers-git-bugfix-adapter-esm-export.mui-org.now.sh


function createAdapterPackageFile(name) {
const packageJson = {
name: `@material-ui/pickers-adapter-${name}`,
Copy link
Member Author

Choose a reason for hiding this comment

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

@oliviertassinari What do you think will be the best name for adapter package.json?
BTW @material-ui/pickers/adapter/${name} is not a valid name for package.json

Copy link
Member

Choose a reason for hiding this comment

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

Do we even need to provide a name? For instance: https://unpkg.com/browse/@material-ui/core@4.9.9/Badge/package.json.

Copy link
Member

Choose a reason for hiding this comment

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

We had mui/material-ui#15715, but it seemed fine.

@cypress
Copy link

cypress bot commented Apr 10, 2020



Test summary

69 0 1 0


Run details

Project material-ui-pickers
Status Passed
Commit 03e6992
Started Apr 10, 2020 11:03 AM
Ended Apr 10, 2020 11:04 AM
Duration 01:22 💡
OS Linux Debian - 9.11
Browser Chrome 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@codecov
Copy link

codecov bot commented Apr 10, 2020

Codecov Report

Merging #1634 into next will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             next    #1634   +/-   ##
=======================================
  Coverage   89.76%   89.76%           
=======================================
  Files          73       73           
  Lines        2315     2315           
  Branches      420      420           
=======================================
  Hits         2078     2078           
  Misses        190      190           
  Partials       47       47           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 502118d...03e6992. Read the comment docs.

@oliviertassinari
Copy link
Member

Should we update the documentation at the same time?

@dmtrKovalenko
Copy link
Member Author

dmtrKovalenko commented Apr 10, 2020

There is no breaking changes. Documentation was already updated — just not working

@dmtrKovalenko dmtrKovalenko merged commit 845ad75 into next Apr 11, 2020
@oliviertassinari oliviertassinari deleted the bugfix/adapter-esm-export branch April 11, 2020 08:23
@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 11, 2020

Note, codesandbox-ci could have helped to test the changes. We have configured it on the mono repository.

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

Successfully merging this pull request may close these issues.

Installation instructions don't work
2 participants