@effected/workspaces 0.10.1 → 0.11.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/ChangeDetector.js +1 -1
- package/DependencyGraph.js +1 -1
- package/LockfileReader.js +1 -1
- package/PackageManagerName.js +1 -1
- package/WorkspaceDiscovery.js +3 -3
- package/WorkspacePackage.js +1 -1
- package/WorkspaceRoot.js +1 -1
- package/package.json +10 -11
package/ChangeDetector.js
CHANGED
|
@@ -51,7 +51,7 @@ var ChangeDetectionOptions = class extends Schema.Class("ChangeDetectionOptions"
|
|
|
51
51
|
*
|
|
52
52
|
* @public
|
|
53
53
|
*/
|
|
54
|
-
var ChangeDetectionError = class extends Schema.
|
|
54
|
+
var ChangeDetectionError = class extends Schema.TaggedError()("ChangeDetectionError", {
|
|
55
55
|
/** The operation that could not run. */
|
|
56
56
|
operation: Schema.String,
|
|
57
57
|
/** The originating failure. */
|
package/DependencyGraph.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Effect, Schema } from "effect";
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
var CyclicDependencyError = class extends Schema.
|
|
17
|
+
var CyclicDependencyError = class extends Schema.TaggedError()("CyclicDependencyError", {
|
|
18
18
|
/** The packages participating in the cycle. */
|
|
19
19
|
cycle: Schema.Array(Schema.String) }) {
|
|
20
20
|
/** Renders the cycle members into a one-line message. */
|
package/LockfileReader.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Lockfile, LockfileFormat, LockfileIntegrity, filenameFor } from "@effec
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
var LockfileReadError = class extends Schema.
|
|
17
|
+
var LockfileReadError = class extends Schema.TaggedError()("LockfileReadError", {
|
|
18
18
|
/** Absolute path to the lockfile that could not be read. */
|
|
19
19
|
lockfilePath: Schema.String,
|
|
20
20
|
/** The format the detected package manager implies. */
|
package/PackageManagerName.js
CHANGED
|
@@ -86,7 +86,7 @@ const corepackHint = (manifest) => {
|
|
|
86
86
|
*
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
var PackageManagerDetectionError = class extends Schema.
|
|
89
|
+
var PackageManagerDetectionError = class extends Schema.TaggedError()("PackageManagerDetectionError", {
|
|
90
90
|
/** The workspace root that was probed. */
|
|
91
91
|
root: Schema.String,
|
|
92
92
|
/** The marker files probed, in the order they were probed. */
|
package/WorkspaceDiscovery.js
CHANGED
|
@@ -17,7 +17,7 @@ import { DependencyResolutionError, WorkspaceResolver } from "@effected/npm";
|
|
|
17
17
|
*
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
var WorkspaceDiscoveryError = class extends Schema.
|
|
20
|
+
var WorkspaceDiscoveryError = class extends Schema.TaggedError()("WorkspaceDiscoveryError", {
|
|
21
21
|
/** The workspace root discovery was running against. */
|
|
22
22
|
root: Schema.String,
|
|
23
23
|
/** The file that failed. */
|
|
@@ -46,7 +46,7 @@ var WorkspaceDiscoveryError = class extends Schema.TaggedErrorClass()("Workspace
|
|
|
46
46
|
*
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
var WorkspacePatternError = class extends Schema.
|
|
49
|
+
var WorkspacePatternError = class extends Schema.TaggedError()("WorkspacePatternError", {
|
|
50
50
|
/** The workspace root the patterns were expanded against. */
|
|
51
51
|
root: Schema.String,
|
|
52
52
|
/** The offending pattern, verbatim. */
|
|
@@ -76,7 +76,7 @@ var WorkspacePatternError = class extends Schema.TaggedErrorClass()("WorkspacePa
|
|
|
76
76
|
*
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
|
-
var PackageNotFoundError = class extends Schema.
|
|
79
|
+
var PackageNotFoundError = class extends Schema.TaggedError()("PackageNotFoundError", {
|
|
80
80
|
/** The name that was requested. */
|
|
81
81
|
name: Schema.String,
|
|
82
82
|
/** Every workspace package name that does exist. */
|
package/WorkspacePackage.js
CHANGED
|
@@ -47,7 +47,7 @@ const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.wi
|
|
|
47
47
|
*
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
var WorkspaceManifestError = class extends Schema.
|
|
50
|
+
var WorkspaceManifestError = class extends Schema.TaggedError()("WorkspaceManifestError", {
|
|
51
51
|
/** Absolute path to the `package.json` that failed. */
|
|
52
52
|
packageJsonPath: Schema.String,
|
|
53
53
|
/** Whether the file could not be read, or read but not decoded. */
|
package/WorkspaceRoot.js
CHANGED
|
@@ -17,7 +17,7 @@ const WORKSPACE_MARKERS = ["pnpm-workspace.yaml", "package.json"];
|
|
|
17
17
|
*
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
var WorkspaceRootNotFoundError = class extends Schema.
|
|
20
|
+
var WorkspaceRootNotFoundError = class extends Schema.TaggedError()("WorkspaceRootNotFoundError", {
|
|
21
21
|
/** The directory the ascent started from. */
|
|
22
22
|
searchPath: Schema.String,
|
|
23
23
|
/** The marker filenames probed at each ancestor. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/workspaces",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Monorepo workspace tooling as Effect services — root discovery, package enumeration, the dependency graph, package-manager detection, pnpm catalog resolution, lockfile IO and git-based change detection.",
|
|
6
6
|
"keywords": [
|
|
@@ -46,22 +46,21 @@
|
|
|
46
46
|
"./package.json": "./package.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@effected/commands": "^0.
|
|
50
|
-
"@effected/git": "^0.
|
|
51
|
-
"@effected/glob": "^0.
|
|
52
|
-
"@effected/lockfiles": "^0.
|
|
53
|
-
"@effected/npm": "^0.
|
|
54
|
-
"@effected/package-json": "^0.
|
|
55
|
-
"@effected/
|
|
56
|
-
"@effected/
|
|
57
|
-
"@effected/yaml": "^0.6.1",
|
|
49
|
+
"@effected/commands": "^0.4.0",
|
|
50
|
+
"@effected/git": "^0.7.0",
|
|
51
|
+
"@effected/glob": "^0.3.0",
|
|
52
|
+
"@effected/lockfiles": "^0.4.0",
|
|
53
|
+
"@effected/npm": "^0.9.0",
|
|
54
|
+
"@effected/package-json": "^0.8.0",
|
|
55
|
+
"@effected/walker": "^0.4.0",
|
|
56
|
+
"@effected/yaml": "^0.7.0",
|
|
58
57
|
"@pnpm/catalogs.config": "^1100.0.0",
|
|
59
58
|
"@pnpm/catalogs.protocol-parser": "^1100.0.0",
|
|
60
59
|
"@pnpm/catalogs.resolver": "^1100.0.0",
|
|
61
60
|
"@pnpm/catalogs.types": "^1100.0.0"
|
|
62
61
|
},
|
|
63
62
|
"peerDependencies": {
|
|
64
|
-
"effect": "4.0.0-beta.
|
|
63
|
+
"effect": "4.0.0-beta.107"
|
|
65
64
|
},
|
|
66
65
|
"engines": {
|
|
67
66
|
"node": ">=24.11.0"
|