rolldown-pnpm-config 2.4.7 → 2.4.8
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/cli/version.js +1 -1
- package/cli/workspace-resolve.js +15 -6
- package/package.json +6 -6
package/cli/version.js
CHANGED
package/cli/workspace-resolve.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ResolveError } from "./resolve.js";
|
|
|
3
3
|
import { Effect, Result } from "effect";
|
|
4
4
|
import { resolve } from "node:path";
|
|
5
5
|
import { Fmt } from "@effected/cli-kit";
|
|
6
|
-
import { findWorkspaceRootSync, getWorkspacePackagesSync } from "@effected/workspaces";
|
|
6
|
+
import { WorkspaceDiscoveryError, WorkspacePatternError, findWorkspaceRootSync, getWorkspacePackagesSync } from "@effected/workspaces";
|
|
7
7
|
import { nodeSyncOps } from "@effected/workspaces/node-sync";
|
|
8
8
|
import { PendingChangesets } from "@effected/changesets";
|
|
9
9
|
|
|
@@ -25,10 +25,12 @@ const BUMP_ORDER = {
|
|
|
25
25
|
* publishes is the author's decision, made elsewhere — and catalog membership
|
|
26
26
|
* is already an explicit choice in the consuming config.
|
|
27
27
|
*
|
|
28
|
-
* The sync discovery facade
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
28
|
+
* This resolver degrades, never fails. The sync discovery facade skips an
|
|
29
|
+
* unreadable or malformed member manifest, but since `@effected/workspaces`
|
|
30
|
+
* 0.46 it throws a `WorkspaceDiscoveryError` or `WorkspacePatternError` when
|
|
31
|
+
* the pattern source itself (`pnpm-workspace.yaml` or the root `package.json`)
|
|
32
|
+
* cannot be read, parsed or compiled. Those two are caught here and read as a
|
|
33
|
+
* workspace with no packages, as before; any other throw propagates.
|
|
32
34
|
*
|
|
33
35
|
* Since `@effected/workspaces` 0.19, that enumeration yields the **root
|
|
34
36
|
* package first** and carries a member whose manifest declares no `version`
|
|
@@ -41,7 +43,14 @@ const BUMP_ORDER = {
|
|
|
41
43
|
*/
|
|
42
44
|
function readManifests(rootDir) {
|
|
43
45
|
const out = /* @__PURE__ */ new Map();
|
|
44
|
-
|
|
46
|
+
let packages;
|
|
47
|
+
try {
|
|
48
|
+
packages = getWorkspacePackagesSync(rootDir, nodeSyncOps);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
if (error instanceof WorkspaceDiscoveryError || error instanceof WorkspacePatternError) return out;
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
for (const pkg of packages) {
|
|
45
54
|
const version = pkg.version;
|
|
46
55
|
if (version === void 0) continue;
|
|
47
56
|
out.set(pkg.name, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-pnpm-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A dogfooding example of our plugin",
|
|
6
6
|
"repository": {
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@effect/platform-node": "4.1.3",
|
|
39
|
-
"@effected/changesets": "^0.4.
|
|
40
|
-
"@effected/cli-kit": "^0.28.
|
|
39
|
+
"@effected/changesets": "^0.4.1",
|
|
40
|
+
"@effected/cli-kit": "^0.28.1",
|
|
41
41
|
"@effected/env": "^0.12.0",
|
|
42
42
|
"@effected/files": "^0.3.0",
|
|
43
43
|
"@effected/glob": "^0.21.0",
|
|
44
|
-
"@effected/npm": "^0.
|
|
44
|
+
"@effected/npm": "^0.34.0",
|
|
45
45
|
"@effected/semver": "^0.24.0",
|
|
46
|
-
"@effected/walker": "^0.
|
|
47
|
-
"@effected/workspaces": "^0.
|
|
46
|
+
"@effected/walker": "^0.28.0",
|
|
47
|
+
"@effected/workspaces": "^0.46.0",
|
|
48
48
|
"@effected/yaml": "^0.30.0",
|
|
49
49
|
"effect": "4.1.3",
|
|
50
50
|
"ink": "^8.0.0",
|