Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can you use caret (^) and tilde (~) with JavaScript package.json versions?

Troy Steuwer May 1, 2017

So, with github, we can specifically use npm's caret (^) and tilde (~) functionality to allow us to automatically use a newer version if specified by these special characters.

I tried using this with bitbucket and it doesn't seem to work the same way as github.

For instance, if I do:

// package.json file
...
"my-other-thing": "^0.3.0",
"my-repo": "https://bitbucket.com/blahblah/my-repo.git#^0.3.0",
...

my-other-thing will work, however, my-repo wont. Is there a way to make this work with bitbucket?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events