Replies: 1 comment 2 replies
-
|
So, some background context: we're most like Nixpkgs in this case. There aren't any built-in modules (well, not user-facing anyway!), (Just wanted to provide some information about how things work today just so we're on the same page!) Early on, I definitely considered using a prefix like
So currently, I'm still mostly leaning towards using unprefixed names like today... but I do think it'd be a good idea to support prefixed names as well. Which is to say, we could handle it similar to Node.js, where we support both But definitely want to hear which direction others would prefer! I'm definitely not opposed to switching to prefixes if that's what most folks want |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For examples,
stdandrustinIt seems that instead of the naked module names, the scoped naming pattern is more preferred in modern JavaScript runtimes, like
node:fsfor Node.js,npm:andjsr:for Deno, andbun:sqlitefor Bun.js, while unscoped name are only used for user defined packages, like import maps and package.json.The
nixpackage manager also uses a similar pattern likegithub:NixOS/nixpkgsfor their official packages.The unscoped names may also look inconsistent if brioche allows remote modules in the future (like
http:andgit+https:, as proposed in #333). It may also bring conflicts if brioche introduces package.json like mechanisms.Beta Was this translation helpful? Give feedback.
All reactions