node.js - Use of git tags in package.json (for git dependencies) -


is possible how update behaviour git dependencies npm packages?

so have git dependency:

"dependencies": { "my-module": "github:me/my-module" } 

and want updated each time npm install, adding revision hash solution requires more work track , updatei in package.json each time package update on github.

there git tags (which can set using npm version.. command - created commit tag v1.2.3. thought maybe thiere way use tags in dependants package.json?

hope clear.

git tag on repoe gives me

v1.0.1 v1.0.0 ..

if try add in package.json after module name version like: #1.0.0 or #v1.0.1

``` "dependencies": { "my-module": "github:me/my-module#1.0.1" } ``` 

install fails error:

command failed: git -c core.longpaths=true rev-list -n1 1.0.0 fatal: ambiguous argument '1.0.0': unknown revision or path not in ree. use '--' separate paths revisions, this: 'git <command> [<revision>...] -- [<file>...]'   if need help, may report error at:     <https://github.com/npm/npm/issues> 

...

this can done this

"my-module": "git+https://github.com/user/repo.git#v1.2.3"


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -