-
Notifications
You must be signed in to change notification settings - Fork 127
The electron
package name on npm
#160
Comments
There are quite a few public projects that use electron-prebuilt as a dependency, https://www.npmjs.com/browse/depended/electron-prebuilt. It might be worth looking at those and seeing how many are affected by option A or B and potentially send PRs to upgrade their dependencies. |
I pinged @greenkeeperio about PR automation tools, and @boennemann got back to me with what looks like the perfect thing: https://github.com/boennemann/github-change-remote-file |
The Electron team just had a little pow-wow to figure out how to move forward. ✏️ Change the 🍴 Fork the 📡 Create a GitHub-owned Heroku instance to run the 📦 Refactor the updater app to automatically publish
👻 Stop publishing 💡 We would love feedback on this plan! |
@zeke Oh my God! My TODO.md is going to be quite a headache. |
What do you mean? Hopefully we can automate the migration process for most users. |
@zeke Do I use |
@englishextra per my comment above, our plan is to continue publishing the package under both names on npm through the end of 2016. |
@zeke I see, Option C—is my choice, and I had no confusion with what to install— electron or electron-prebuilt when I started building packages with electron-packager tool. |
electron-builder |
Awesome, @develar! Thanks for fixing, and for letting us know. |
Hm, wonder what I'm gonna rename |
assemble compose |
This is a done deal! Blog post: http://electron.atom.io/blog/2016/08/16/npm-install-electron |
electron-prebuilt is a legacy package name that made it difficult for developer to find Electron with npm. electron-prebuild still exists for backward compatibility, but developers are encouraged to migrate. electron-userland/electron-prebuilt#160
electron-prebuilt is a legacy package name that made it difficult for developer to find Electron with npm. electron-prebuild still exists for backward compatibility, but developers are encouraged to migrate. electron-userland/electron-prebuilt#160
The Electron team at GitHub recently reached out to @logicalparadox to see if he'd be willing to let us take over the
electron
npm package. He has graciously agreed to do so, and has added our team as owners.The motivation for the request was this:
So, now that we have the name, the goal is to make
npm install electron
feel just likenpm install electron-prebuilt
. How should we accomplish this?Option A: Pull off the Band-Aid™
npm deprecate
theelectron-prebuilt
package. Thedeprecate
method allows you to specify a message that will be displayed to users when the package is installed. We could say something like: "As of version x.x.x, electron-prebuilt has been renamed to electron.". Changename
toelectron
in the package.json file and begin publishing to npm aselectron
, but leave the repository name as-is.Option B: Tandem Releases for a While
Similar to option A, but with a longer window for users to make the switch. We would still deprecate
electron-prebuilt
on npm immediately, but instead of pulling the plug on theelectron-prebuilt
package right away, we could publish both packages in tandem for a while, then eventually stop publishingelectron-prebuilt
entirely.Option C: Side by Side, Forever
We could just leave
electron-prebuilt
as-is, and makeelectron
a simple wrapper around it. Both packages would need to be released automatically, as prebuilt is today.I think the Electron team prefers Option A because it seems the simplest, but we are open to ideas. The end-goal is to make it easier for novices and pros alike to get electron running locally without confusion. The approach we should take is the one that minimizes confusion and maximizes developer happiness. :)
The text was updated successfully, but these errors were encountered: