Separate package source, registry protocol, and runtime fields for better flexibility #645
beshkenadze
started this conversation in
Ideas
Replies: 1 comment
-
The intent behind the
It's certainly not the
Wouldn't this work for you as-is with the current modeling? {
"registryType": "npm",
"registryBaseUrl": "https://npm.pkg.github.com",
"runtimeHint": "bunx"
}Let me know if I'm misunderstanding. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Your Idea
Idea
The current schema defines a single field
registryType(e.g.,npm,pypi,oci,nuget,mcpb) to describe how a package is retrieved.However, this conflates multiple concepts:
This makes it difficult to describe hybrid scenarios, such as a package distributed through an npm-compatible registry hosted on GitHub and executed via Bun or Deno.
Proposal
Split the existing
registryTypeinto distinct fields to improve clarity and future extensibility:{ "sourceType": "github", // where it is hosted "registryProtocol": "npm", // how it is fetched "runtimeHint": "bunx", // how it is executed "registryBaseUrl": "https://npm.pkg.github.com" }This preserves backward compatibility while allowing richer modeling for cross-registry and multi-runtime use cases.
Benefits
Scope
Beta Was this translation helpful? Give feedback.
All reactions