Navigation Menu

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unpkg field to package.json #83

Merged
merged 1 commit into from Oct 23, 2019
Merged

Conversation

tmcw
Copy link
Contributor

@tmcw tmcw commented Aug 21, 2019

Hello! Zdog is amazing 馃槏

This PR adds an unpkg field, as recommended by unpkg to correctly resolve the UMD build of the module. This means that, first, folks using d3-require automatically get the right version. And also, people can use https://unpkg.com/zdog@1 to automatically get the right file for a given semver version range, even if you move around the dist file (so if you want to move dist, it's less likely to automatically be a major change. Plus, it'll make Zdog a bit easier to require on Observable!

@desandro desandro merged commit 2d87bf6 into metafizzy:master Oct 23, 2019
@desandro
Copy link
Member

Good call! Thank you for this contribution. And welcome to open source! This feature will ship in the next release. Email me yo@metafizzy.co if you like stickers!

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

Successfully merging this pull request may close these issues.

None yet

2 participants