rolldown-pnpm-config 0.5.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rolldown-pnpm-config.js +1 -1
- package/catalogs.js +3 -8
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ const root = Command.make("rolldown-pnpm-config").pipe(Command.withSubcommands([
|
|
|
12
12
|
exportCommand,
|
|
13
13
|
previewCommand
|
|
14
14
|
]));
|
|
15
|
-
Command.run(root, { version: "0.
|
|
15
|
+
Command.run(root, { version: "0.6.0" }).pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain);
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { };
|
package/catalogs.js
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
* Normalize declarative catalog input into the resolved `{ catalog → pkg → range }`
|
|
4
4
|
* map consumed by the runtime. Pure: the base catalog uses each package's
|
|
5
5
|
* `range` (or bare string); a peers catalog is emitted only for packages
|
|
6
|
-
* carrying a materialized `peer`, using that value verbatim
|
|
7
|
-
*
|
|
8
|
-
* (colon-delimited, preferred) during this transition; the camelCase form is
|
|
9
|
-
* removed in a later branch. `strategy` is CLI-only and ignored here.
|
|
6
|
+
* carrying a materialized `peer`, using that value verbatim, under the
|
|
7
|
+
* `<name>:peers` colon-delimited name. `strategy` is CLI-only and ignored here.
|
|
10
8
|
*
|
|
11
9
|
* @internal
|
|
12
10
|
*/
|
|
@@ -20,10 +18,7 @@ function normalizeCatalogs(input) {
|
|
|
20
18
|
if (typeof spec === "object" && spec.peer !== void 0) peers[pkg] = spec.peer;
|
|
21
19
|
}
|
|
22
20
|
out[name] = base;
|
|
23
|
-
if (Object.keys(peers).length > 0) {
|
|
24
|
-
out[`${name}Peers`] = peers;
|
|
25
|
-
out[`${name}:peers`] = peers;
|
|
26
|
-
}
|
|
21
|
+
if (Object.keys(peers).length > 0) out[`${name}:peers`] = peers;
|
|
27
22
|
}
|
|
28
23
|
return out;
|
|
29
24
|
}
|