Last active
April 6, 2019 22:14
-
-
Save ThisIsMissEm/29cb0348a5e307bedd0d8b93420008d5 to your computer and use it in GitHub Desktop.
Concept for multi-registry support in package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"registries": { | |
"npm": { "url": "registry.npmjs.org", "default": true }, | |
"tidelift": { "url": "registry.tidelift.org" }, | |
"acme-corp": { "url": "verdaccio.acme.corp" } | |
}, | |
"dependencies": { | |
"express": "^4.0.x", | |
"*acme-corp/ui": "^1.0.4", | |
"*tidelift/express-pro": "2.0.5" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vague idea, but yeah, this is a hard one especially if trying not to break backwards compatibility. Best I can figure is adding a separate
sources
field that can inline any of the registries info like above (which I really like the idea of) or just reference a name from one: