DEV Community

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

Collapse
 
marceloandrade profile image
Marcelo Andrade R.

a monorepo counts for your definition of private packages?

Collapse
 
kylegalbraith profile image
Kyle Galbraith

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

Collapse
 
marceloandrade profile image
Marcelo Andrade R.

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

app1
app2
package1
package2

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

Cool idea and totally viable! Thanks for sharing.