paralleldrive / cuid

Collision-resistant ids optimized for horizontal scaling and performance.
Other
3.44k stars 123 forks source link

specify "unpkg" and/or "jsdelivr" properties in package.json #123

Closed niftylettuce closed 5 years ago

niftylettuce commented 5 years ago

add "unpkg": "dist/cuid.min.js" and "jsdelivr": "dist/cuid.min.js" to package.json so that we can use <script src="https://unpkg.com/cuid"></script> and window.cuid in our scripts

niftylettuce commented 5 years ago

also dist is ignored in .gitignore so it doesn't get published up.

so you will have to add to package.json a property files with value [ "dist", "lib" ]

niftylettuce commented 5 years ago

PR inbound in just a sec

niftylettuce commented 5 years ago

see https://github.com/ericelliott/cuid/pull/124

after merging you will just need to version bump

I recommend np and release for NPM/GitHub release management if you wanted something to make this easy

niftylettuce commented 5 years ago

👏 thank you @ericelliott