-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Actually publish the browser compilers to NPM #5186
Actually publish the browser compilers to NPM #5186
Conversation
Update: I put a copy of each browser compiler into the "module": "./lib/coffeescript-browser-compiler-modern/coffeescript.js",
"browser": "./lib/coffeescript-browser-compiler-legacy/coffeescript.js", Is there a reason And can someone please explain to me the |
Sorry, I have no idea. |
My immediate hunch to address this would be to get rid of the "docs" folder, and just start publishing the GitHub Page directly from master (or from gh-pages). Then As a separate note — it feels a little wrong to have both the regular Node module and the compiled browser compiler be part of the same npm module, since they're duplicative of each other, and for any given use, you only need one of them, not both ... but I guess it’s alright, as long as the browser compiler isn't too huge. |
Agreed, but people use npm modules in differing ways these days, as you've seen with the PR about making this work with Webpack. It's becoming common for npm modules to support multiple targets (Node, build tools, ES modules, browsers, etc.) and file size of overall packages doesn't seem to be much of a concern. Did you see my last comment above about |
Yes, but I don't really understand what you mean ... |
Okay, so there’s no greater significance than that, it sounds like? I assume it’s fine for me to add additional subfolders under
So basically our |
Well, I just announced 2.4.0 with a fancy new ES module version of the browser compiler, but that new compiler didn’t get published to NPM because it’s not in the
package.json
files
block. Oops.It feels a little weird to publish a path into the
docs
folder, but it also feels wrong to have two copies of the browser compilers both checked into the repo. Thoughts? The version indocs
needs to be there in order for the browser compiler to be used in the docs site.I’m going to wait a few days before publishing 2.4.1, to see if anyone reports any (other) bugs in 2.4.0.
cc @jashkenas