DEV Community

Discussion on: What do you use for private package hosting?

kylegalbraith profile image
Kyle Galbraith Author

Hmm it could? I'm not sure what that looks like, mind sharing some details?

marceloandrade profile image
Marcelo Andrade R.

for example in a node app, you will have a structure like this in the same git repo:


in the package.json from app1 you can reference the dependency with "package1": "../package1" and "package2": "../package2". And app2 can reference or not some common package in its package.json

that way your package is private because is part of your own repo, and you can have multiple apps sharing the packages you create.

Thread Thread
kylegalbraith profile image
Kyle Galbraith Author

Cool idea and totally viable! Thanks for sharing.