esm-bundle / new-repo-instructions

MIT License
8 stars 1 forks source link

Access and a question about versions #7

Closed drixsonic closed 4 years ago

drixsonic commented 4 years ago

My username on npmjs.com

My username on npmjs.com is drixsonic

I will create an esm-bundle repo for the following npm packages:

Or at least for @material-ui/styles at first

I am not an evil charlatan


But before creating my first repo, I have some concerns about versioning. How and when are the versions bumped? As the released URLs contain no version, a new release could potentially break a production website depending on it, if that release has a breaking change, or did I miss something?

joeldenning commented 4 years ago

But before creating my first repo, I have some concerns about versioning. How and when are the versions bumped? As the released URLs contain no version, a new release could potentially break a production website depending on it, if that release has a breaking change, or did I miss something?

You can add version numbers to the URLs in the readme to pin to a specific version. For example - https://cdn.jsdelivr.net/npm/@esm-bundle/react@16.13.1/esm/react.development.js

esm-bundle uses https://github.com/esm-bundle/release-it-plugin-esm-bundle during its CI process to determine the version number to be published to NPM. It uses the version of the library that's in the esm-bundle repo's package.json. See https://github.com/esm-bundle/release-it-plugin-esm-bundle/blob/8e13c900ab3083a13d3b6abd9018151513e8add9/index.js#L39 for more details.

I have given you the ability to create repositories in this github organization. You should be able to see a banner at the top inviting you at https://github.com/esm-bundle

drixsonic commented 4 years ago

Ok, great! Thank you for the invite 😊