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

[types] Add LICENSE files #23162

Merged
merged 3 commits into from
Oct 20, 2020

Conversation

lielfr
Copy link
Contributor

@lielfr lielfr commented Oct 19, 2020

This is a pretty straightforward PR. Started with the types package because of issue #23047 and copied the LICENSE file from the root directory of the repository to every package which didn't have one already.
Hopefully this will fix that issue.

Edit by @oliviertassinari

Closes #23047

@mui-pr-bot
Copy link

mui-pr-bot commented Oct 19, 2020

No bundle size changes

Generated by 🚫 dangerJS against 3f28ad9

@oliviertassinari oliviertassinari changed the title Added LICENSE files to every package which didn't have it already [types] Add LICENSE files Oct 19, 2020
@oliviertassinari oliviertassinari added package: types Specific to @mui/types typescript core Infrastructure work going on behind the scenes and removed typescript labels Oct 19, 2020
@oliviertassinari oliviertassinari force-pushed the Copy-LICENSE-file-to-packages branch from ac9f453 to 2e5c26f Compare October 19, 2020 13:44
Comment on lines 72 to 78
...(packageDataOther.main
? {
main: './node/index.js',
module: './index.js',
}
: {}),
types: './index.d.ts',
Copy link
Member

Choose a reason for hiding this comment

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

How the these changes relate to the LICENSE of @material-ui/types?

Copy link
Member

@oliviertassinari oliviertassinari Oct 19, 2020

Choose a reason for hiding this comment

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

  • there are no main nor modules entries in the package.json for @material-ui/types
  • typing should be types to match the convention.

Copy link
Member

Choose a reason for hiding this comment

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

there are no main nor modules entries in the package.json for @material-ui/types

Right, we run this script on types now. Really which we would've just copied the LICENSE file instead of touching build infra.

typing should be types to match the convention.

These are equivalent as per https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html. What convetion do you mean?

Copy link
Member

Choose a reason for hiding this comment

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

Right, we run this script on types now. Really which we would've just copied the LICENSE file instead of touching build infra.

We could do that too. It was the initial proposal of @lielfr. But I think that he went too far, he added the LICENSE file in all the packages which aren't necessary.

What convetion do you mean?

The motivation was to consolidate on a single name for the field, avoiding to use two different names.

Copy link
Member

Choose a reason for hiding this comment

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

Legal is just annoying 😄 Let me rebase and then we can get this in.

Copy link
Member

Choose a reason for hiding this comment

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

I'll simplify the main/module juggling later. There's a better, conventional approach for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm sorry, it probably would have been better if I'd asked first about the desired way to implement it. Just thought that only copying the file to the types module isn't worth a PR by itself.

Copy link
Member

Choose a reason for hiding this comment

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

Just thought that only copying the file to the types module isn't worth a PR by itself.

Any change is worth a PR. Don't ever get discouraged by how minor a change might be perceived.

@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Oct 20, 2020
@eps1lon eps1lon force-pushed the Copy-LICENSE-file-to-packages branch from 8fb7888 to 3f28ad9 Compare October 20, 2020 13:51
@oliviertassinari oliviertassinari merged commit e0c7b59 into mui:next Oct 20, 2020
@oliviertassinari
Copy link
Member

@lielfr It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes package: types Specific to @mui/types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@material-ui/types does not include LICENSE file in distribution
4 participants