-
Notifications
You must be signed in to change notification settings - Fork 12.8k
please make package.json version on github more useful #1818
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
Comments
Welcome back Claus 😄 We've been talking about doing a rolling-build style thing on NPM and should roll the above recommendations into that. |
@clausreinke Meanwhile, you can use https://github.com/Arnavion/typescript-github "dependencies": {
"typescript-github": "https://github.com/Arnavion/typescript-github/tarball/2015-01-28-67023a83d520fe72cf723359198a931e36def0de"
} |
@DanielRosenwasser just pump up the version to 1.5 everywhere. |
@mhegazy @DanielRosenwasser as long as version bump + fresh LKG always go together, that should help. If you don't like to spend a "real" version number for every build, add a build number. (Since I raised concerns about npm github dependencies above: after the initial (too deep) clone, subsequent installs have been fast.) |
grmpf. Now that you've been so helpful, npm is driving me crazy: even though I've got typescript 1.5.0 installed globally, it refuses to accept that as a dependency, no matter what I try to convince it to ignore the registry. But that seems to be an npm bug: npm/npm#5509 (and no, the workaround doesn't for me). |
We should definitely adopt that label for some issues. |
Should we consider this |
submitter here: sure. Is there a tracking issue for the npm build automation? @DanielRosenwasser I wondered about the purpose of that label: since it isn't self-descriptive, it has the feeling of an inside joke. |
Not currently, I'll set one up.
It's a Pokémon reference. The intro song starts off with the lyrics "I wanna be the very best". The tag is basically as if to say "this is a very hard task, you must be very determined to figure out a solution". |
What is the suggested path for taking the github version of typescript as npm package dependency?
For instance, there are some small issues with the latest npm package 1.4.1, which are fixed in master, but master package.json still has version 1.4.0. So even if I npm install from the git repo, the version for the dependency can't be specified correctly.
My (naive?) suggestion would be:
Btw, does anyone know how to specify a github dependency in package.json, without npm install being wasteful? Using
npm (1.4.3) seems to clone the whole repo, when a shallow clone would be sufficient, and I don't want to think whether it is going to be more clever on updates. And while npm accepts tarballs, github offers zipfiles.
My best guess would be to specify the dependency with name and version only, then manually do something like
If anyone has a good solution, that should perhaps go into the docs/readme somewhere?
The text was updated successfully, but these errors were encountered: