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

Convert package to a ES module #1528

Merged
merged 12 commits into from
Aug 11, 2021
Merged

Convert package to a ES module #1528

merged 12 commits into from
Aug 11, 2021

Conversation

koddsson
Copy link
Contributor

@koddsson koddsson commented Aug 11, 2021

As dependencies start publishing as pure ES modules, it will become increasingly difficult to update those dependencies. For that reason, we should convert the @primer/css to an ES module. This pull request is my stab at it.

I don't work on this project a lot, so that I might break something not apparent to me. I would appreciate any help in making sure everything is still working correctly.

References

#1515
closes #1516
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

@changeset-bot
Copy link

changeset-bot bot commented Aug 11, 2021

🦋 Changeset detected

Latest commit: 9ba3df1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@koddsson
Copy link
Contributor Author

As far as I can tell the JSON outputted is fine? Not sure why I'm getting that error.

@koddsson koddsson marked this pull request as ready for review August 11, 2021 14:21
@jonrohan jonrohan enabled auto-merge (squash) August 11, 2021 21:10
@jonrohan jonrohan merged commit 303caca into main Aug 11, 2021
@jonrohan jonrohan deleted the es branch August 11, 2021 21:10
@primer-css primer-css mentioned this pull request Aug 11, 2021
@simurai simurai mentioned this pull request Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update scripting files and scaffolding from CommonJS to ESM
2 participants