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

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
Community showcase
Posted 8 hours ago in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

26 views 1 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you