-
Notifications
You must be signed in to change notification settings - Fork 642
Allow for npm install from GitHub #156
Comments
I don't know what bugfix you're thinking of, but if you need to depend on |
That's just it though. You cannot do that because of the
Yes, indeed, and I've already got my code refactored to work with the changes. It was a necessity because the double updates were killing my navigation. |
I'm happy to do a PR if that sounds like an acceptable solution. |
Ah, so that's actually a con of #134 — didn't think about this use-case. I'll re-open and wait and see if others have any opinions on this. Hopefully we'll get a 2.0 out soon too. |
Indeed, how about adding
|
I guess the obvious question is "Why limit it in the first place?" To me, pulling from GitHub or the tarball should represent what you find in the repo itself. It's an odd situation to be in to find that they differ. |
I think I guess Additionally, in many cases, As a result, I think it is enough to add |
From the registry sure, but when you are specifically requesting the master branch from GitHub, I think you should get...the master branch from GitHub. At that point, you are using NPM as a transport mechanism for something else. And what about the tarball? Don't you think it should be an archive of the repo as it existed at a certain release, not just what you publish to NPM, which is really an unrelated concern? |
Indeed, I think the npm registry is not an archive site. It is a registry for npm as a package manager. |
I think @koba04 is right. For now let's just add I wish npm just ignored these fields when installing straight from a git repo. I would expect to get the full repo, but this works for now. |
I know this can be a contentious topic, but as the project is configured now, it's not possible to depend on the GitHub version of the library (for one, there's no build on install and, two, the
files
directive in package.json wouldn't provide the necessary files for one). At times like these, where major bug fixes are only available there until a new NPM release is published, this requires a fork with a committed build (as far as I know). I can live with that, but has anyone considered any acceptable reorganization of the project that makes a direct GitHub install possible?The text was updated successfully, but these errors were encountered: