0

I have the project in node.js. And this main project has the dependency in package.json from private bitbucket repository. So the problem is how to set this dependency that it can be deployed on my host Heroku?

Vasiliy Mazhekin
  • 688
  • 8
  • 24

1 Answers1

-1

This decision works excellent for me

App passwords (Bitbucket) App passwords are primarily intended as a way to provide compatibility with apps that don't support two-factor authentication, and you can use them for this purpose as well. First, create an app password, then specify your dependency like this:

"dependencies" : {
    "my-module": "git+https://<username>:<app-password>@bitbucket.org/my_bitbucket_account/my_repo.git"
}
Vasiliy Mazhekin
  • 688
  • 8
  • 24
  • How is putting the app password in a file that is not being ignored is an answer? this is not a good answer, this lacks the security aspect. – Michael Parkadze May 18 '22 at 09:10