rolldown-pnpm-config 0.7.9 → 0.7.10

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.
@@ -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.7.9" }).pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain);
15
+ Command.run(root, { version: "0.7.10" }).pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain);
16
16
 
17
17
  //#endregion
18
18
  export { };
@@ -26,19 +26,30 @@ const FRONTMATTER_LINE_RE = /^\s*["']?([^"':\s]+)["']?\s*:\s*(major|minor|patch)
26
26
  * is already an explicit choice in the consuming config.
27
27
  *
28
28
  * The sync discovery facade is total by contract — an unreadable or malformed
29
- * manifest (including a version-less workspace root) is skipped, never raised —
30
- * which is exactly this resolver's degrade-don't-fail contract; the Effect
31
- * surface (`WorkspaceDiscovery`) instead fails typed on any unusable member.
29
+ * manifest is skipped, never raised — which is exactly this resolver's
30
+ * degrade-don't-fail contract; the Effect surface (`WorkspaceDiscovery`)
31
+ * instead fails typed on any unusable member.
32
+ *
33
+ * Since `@effected/workspaces` 0.19, that enumeration yields the **root
34
+ * package first** and carries a member whose manifest declares no `version`
35
+ * (`WorkspacePackage.version` is an optional key) rather than dropping it —
36
+ * a private, version-less monorepo root being the ordinary shape. Such a
37
+ * member is filtered out here: this resolver maps a name to a concrete
38
+ * version, and an entry with no version has nothing to resolve to.
32
39
  *
33
40
  * @internal
34
41
  */
35
42
  function readManifests(rootDir) {
36
43
  const out = /* @__PURE__ */ new Map();
37
- for (const pkg of getWorkspacePackagesSync(rootDir, nodeSyncOps)) out.set(pkg.name, {
38
- name: pkg.name,
39
- version: pkg.version,
40
- peerDependencies: pkg.peerDependencies
41
- });
44
+ for (const pkg of getWorkspacePackagesSync(rootDir, nodeSyncOps)) {
45
+ const version = pkg.version;
46
+ if (version === void 0) continue;
47
+ out.set(pkg.name, {
48
+ name: pkg.name,
49
+ version,
50
+ peerDependencies: pkg.peerDependencies
51
+ });
52
+ }
42
53
  return out;
43
54
  }
44
55
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-pnpm-config",
3
- "version": "0.7.9",
3
+ "version": "0.7.10",
4
4
  "private": false,
5
5
  "description": "A dogfooding example of our plugin",
6
6
  "repository": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@effect/platform-node": "4.0.0-rc.109",
39
39
  "@effected/npm": "^0.12.1",
40
- "@effected/semver": "^0.5.0",
41
- "@effected/workspaces": "^0.18.3",
40
+ "@effected/semver": "^0.5.1",
41
+ "@effected/workspaces": "^0.19.0",
42
42
  "@effected/yaml": "^0.12.0",
43
43
  "effect": "4.0.0-rc.109",
44
44
  "ink": "^7.1.1",