@effected/workspaces 0.48.1 → 0.48.2
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 +2 -2
- package/ConfigDependencyHooks.js +5 -5
- package/ConfigDependencySpec.js +2 -2
- package/DependencyGraph.js +1 -1
- package/DuplicateCheck.js +1 -1
- package/ImportGraph.js +2 -2
- package/LayerPolicy.js +3 -3
- package/LockfileReader.js +3 -3
- package/PackageManagerName.js +2 -2
- package/PackedInstall.js +5 -5
- package/PeerCheck.js +2 -2
- package/SourceBoundary.js +2 -2
- package/VersioningStrategy.js +1 -1
- package/WorkspaceCatalogs.js +6 -6
- package/WorkspaceDiscovery.js +3 -3
- package/WorkspaceLayering.js +3 -3
- package/WorkspacePackage.js +2 -2
- package/WorkspaceRoot.js +2 -2
- package/WorkspaceSnapshots.js +6 -6
- package/WorkspaceStateSnapshot.js +2 -2
- package/Workspaces.js +3 -3
- package/WorkspacesSync.js +4 -4
- package/internal/configDependencyFetch.js +7 -7
- package/internal/configDependencyResolution.js +6 -6
- package/internal/configDependencyShared.js +4 -4
- package/internal/enumerate.js +1 -1
- package/internal/membership.js +3 -3
- package/internal/packageManagerDecision.js +1 -1
- package/internal/packedInstallPlan.js +2 -2
- package/internal/patterns.js +1 -1
- package/internal/workspaceYaml.js +2 -2
- package/package.json +2 -2
package/ChangeDetector.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DependencyGraph } from "./DependencyGraph.js";
|
|
2
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
3
1
|
import { Git } from "@effected/git";
|
|
4
2
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
+
import { DependencyGraph } from "./DependencyGraph.js";
|
|
4
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
5
5
|
|
|
6
6
|
// src/ChangeDetector.ts
|
|
7
7
|
/**
|
package/ConfigDependencyHooks.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { normalize } from "./internal/catalogs.js";
|
|
2
|
-
import { makeFetchConfigDependency } from "./internal/configDependencyFetch.js";
|
|
3
|
-
import { lookupPnpmfiles, resolvePnpmfiles } from "./internal/configDependencyResolution.js";
|
|
4
|
-
import { Context, Duration, Effect, Layer, Predicate, Schema } from "effect";
|
|
5
|
-
import { CatalogAssemblyError } from "@effected/npm";
|
|
6
1
|
import { pathToFileURL } from "node:url";
|
|
7
2
|
import { Run } from "@effected/commands";
|
|
3
|
+
import { CatalogAssemblyError } from "@effected/npm";
|
|
8
4
|
import { PeerDependencyRules } from "@effected/pnpm";
|
|
5
|
+
import { Context, Duration, Effect, Layer, Predicate, Schema } from "effect";
|
|
9
6
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
7
|
+
import { normalize } from "./internal/catalogs.js";
|
|
8
|
+
import { makeFetchConfigDependency } from "./internal/configDependencyFetch.js";
|
|
9
|
+
import { lookupPnpmfiles, resolvePnpmfiles } from "./internal/configDependencyResolution.js";
|
|
10
10
|
|
|
11
11
|
// src/ConfigDependencyHooks.ts
|
|
12
12
|
/** Internal alias, kept short at the many call sites in this module. */
|
package/ConfigDependencySpec.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { splitConfigDependencySpec } from "./internal/configDependencySpecGrammar.js";
|
|
2
|
-
import { Effect, Exit, Option, Result, Schema, SchemaIssue, SchemaTransformation } from "effect";
|
|
3
1
|
import { SriIntegrityHash } from "@effected/npm";
|
|
4
2
|
import { SemVer } from "@effected/semver";
|
|
3
|
+
import { Effect, Exit, Option, Result, Schema, SchemaIssue, SchemaTransformation } from "effect";
|
|
4
|
+
import { splitConfigDependencySpec } from "./internal/configDependencySpecGrammar.js";
|
|
5
5
|
|
|
6
6
|
// src/ConfigDependencySpec.ts
|
|
7
7
|
/**
|
package/DependencyGraph.js
CHANGED
package/DuplicateCheck.js
CHANGED
package/ImportGraph.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { GlobSet } from "@effected/glob";
|
|
2
|
+
import { Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
1
3
|
import { isTypePositionImport } from "./internal/importPosition.js";
|
|
2
4
|
import { isIdentifierChar, lex, locate, specifierLiterals, wordEndingAt } from "./internal/sourceText.js";
|
|
3
5
|
import { DEFAULT_EXTENSIONS, walkSources } from "./internal/sourceWalk.js";
|
|
4
6
|
import { SourceBoundary } from "./SourceBoundary.js";
|
|
5
7
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
6
|
-
import { Effect, FileSystem, Option, Path, Schema } from "effect";
|
|
7
|
-
import { GlobSet } from "@effected/glob";
|
|
8
8
|
|
|
9
9
|
// src/ImportGraph.ts
|
|
10
10
|
/**
|
package/LayerPolicy.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { GlobSet } from "@effected/glob";
|
|
2
|
+
import { DependencyField } from "@effected/npm";
|
|
3
|
+
import { Effect, FileSystem, Result, Schema } from "effect";
|
|
1
4
|
import { causeMessage } from "./internal/causeMessage.js";
|
|
2
5
|
import { ALL_DEPENDENCY_FIELDS } from "./internal/dependencyFields.js";
|
|
3
|
-
import { Effect, FileSystem, Result, Schema } from "effect";
|
|
4
|
-
import { DependencyField } from "@effected/npm";
|
|
5
|
-
import { GlobSet } from "@effected/glob";
|
|
6
6
|
|
|
7
7
|
// src/LayerPolicy.ts
|
|
8
8
|
const REQUIRED_EDGE = /^\S+ -> \S+$/u;
|
package/LockfileReader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Lockfile, LockfileFormat, LockfileIntegrity, filenameFor } from "@effected/lockfiles";
|
|
2
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
3
|
+
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
1
4
|
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
2
5
|
import { PackageManagerDetector } from "./PackageManagerName.js";
|
|
3
6
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
7
|
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
5
|
-
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
6
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
7
|
-
import { Lockfile, LockfileFormat, LockfileIntegrity, filenameFor } from "@effected/lockfiles";
|
|
8
8
|
|
|
9
9
|
// src/LockfileReader.ts
|
|
10
10
|
/**
|
package/PackageManagerName.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
2
|
+
import { Context, Effect, FileSystem, Layer, Option, Path, Predicate, Result, Schema } from "effect";
|
|
1
3
|
import { MARKER_FILES, decidePackageManager } from "./internal/packageManagerDecision.js";
|
|
2
4
|
import { WorkspaceManifestError } from "./WorkspacePackage.js";
|
|
3
|
-
import { Context, Effect, FileSystem, Layer, Option, Path, Predicate, Result, Schema } from "effect";
|
|
4
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
5
5
|
|
|
6
6
|
// src/PackageManagerName.ts
|
|
7
7
|
/**
|
package/PackedInstall.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PackageManagerName } from "./PackageManagerName.js";
|
|
3
|
-
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
|
-
import { Config, Duration, Effect, FileSystem, Option, Path, Redacted, Result, Schema, Stream } from "effect";
|
|
1
|
+
import { Run } from "@effected/commands";
|
|
5
2
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
6
3
|
import { Yaml } from "@effected/yaml";
|
|
7
|
-
import {
|
|
4
|
+
import { Config, Duration, Effect, FileSystem, Option, Path, Redacted, Result, Schema, Stream } from "effect";
|
|
8
5
|
import { ChildProcess } from "effect/process";
|
|
6
|
+
import { binConflict, binTargetOf, closureOf, consumerFiles, fileOverridesOf, installArgs, overridePath, readPackedManifest, scrubEnv, versionOf } from "./internal/packedInstallPlan.js";
|
|
7
|
+
import { PackageManagerName } from "./PackageManagerName.js";
|
|
8
|
+
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
9
9
|
|
|
10
10
|
// src/PackedInstall.ts
|
|
11
11
|
/**
|
package/PeerCheck.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { indexInstances, rootInstances } from "./internal/roots.js";
|
|
2
|
-
import { Option, Result, Schema } from "effect";
|
|
3
1
|
import { PnpmMatcher } from "@effected/pnpm";
|
|
4
2
|
import { Range, SemVer } from "@effected/semver";
|
|
3
|
+
import { Option, Result, Schema } from "effect";
|
|
4
|
+
import { indexInstances, rootInstances } from "./internal/roots.js";
|
|
5
5
|
|
|
6
6
|
// src/PeerCheck.ts
|
|
7
7
|
/**
|
package/SourceBoundary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { GlobSet } from "@effected/glob";
|
|
2
|
+
import { Effect, FileSystem, Schema } from "effect";
|
|
1
3
|
import { isIdentifierChar, lex, locate, references, specifierLiterals } from "./internal/sourceText.js";
|
|
2
4
|
import { DEFAULT_EXTENSIONS, walkSources } from "./internal/sourceWalk.js";
|
|
3
|
-
import { Effect, FileSystem, Schema } from "effect";
|
|
4
|
-
import { GlobSet } from "@effected/glob";
|
|
5
5
|
|
|
6
6
|
// src/SourceBoundary.ts
|
|
7
7
|
/**
|
package/VersioningStrategy.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
1
2
|
import { PublishabilityDetector } from "./Publishability.js";
|
|
2
3
|
import { ReleaseTag } from "./ReleaseTag.js";
|
|
3
4
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
4
|
-
import { Effect, Schema } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/VersioningStrategy.ts
|
|
7
7
|
/**
|
package/WorkspaceCatalogs.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { filenameFor } from "@effected/lockfiles";
|
|
2
|
+
import { CatalogAssemblyError, CatalogResolver, DependencyResolutionError } from "@effected/npm";
|
|
3
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
4
|
+
import { PartialReleaseAgeGate, PeerDependencyRules, ReleaseAgeGate } from "@effected/pnpm";
|
|
5
|
+
import { Yaml } from "@effected/yaml";
|
|
6
|
+
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, PlatformError, Predicate, Schema } from "effect";
|
|
1
7
|
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
2
8
|
import { inlineCatalogs, merge, normalize, rangeOf } from "./internal/catalogs.js";
|
|
3
9
|
import { isStringRecord } from "./internal/guards.js";
|
|
@@ -6,12 +12,6 @@ import { findLayerRoot } from "./internal/layerRoot.js";
|
|
|
6
12
|
import { configDependenciesOf, inlinePeerDependencyRules } from "./internal/workspaceYaml.js";
|
|
7
13
|
import { LockfileReader } from "./LockfileReader.js";
|
|
8
14
|
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
|
-
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, PlatformError, Predicate, Schema } from "effect";
|
|
10
|
-
import { CatalogAssemblyError, CatalogResolver, DependencyResolutionError } from "@effected/npm";
|
|
11
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
12
|
-
import { Yaml } from "@effected/yaml";
|
|
13
|
-
import { filenameFor } from "@effected/lockfiles";
|
|
14
|
-
import { PartialReleaseAgeGate, PeerDependencyRules, ReleaseAgeGate } from "@effected/pnpm";
|
|
15
15
|
|
|
16
16
|
// src/WorkspaceCatalogs.ts
|
|
17
17
|
/**
|
package/WorkspaceDiscovery.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DependencyResolutionError, WorkspaceResolver } from "@effected/npm";
|
|
2
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
3
|
+
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
1
4
|
import { enumerate } from "./internal/enumerate.js";
|
|
2
5
|
import { isStringRecord } from "./internal/guards.js";
|
|
3
6
|
import { findLayerRoot } from "./internal/layerRoot.js";
|
|
@@ -6,9 +9,6 @@ import { MARKER_FILES } from "./internal/packageManagerDecision.js";
|
|
|
6
9
|
import { readPatternSource } from "./internal/patterns.js";
|
|
7
10
|
import { WorkspacePackage } from "./WorkspacePackage.js";
|
|
8
11
|
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
|
-
import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Schema } from "effect";
|
|
10
|
-
import { DependencyResolutionError, WorkspaceResolver } from "@effected/npm";
|
|
11
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
12
12
|
|
|
13
13
|
// src/WorkspaceDiscovery.ts
|
|
14
14
|
/**
|
package/WorkspaceLayering.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { GlobSet } from "@effected/glob";
|
|
2
|
+
import { DependencyField } from "@effected/npm";
|
|
3
|
+
import { Effect, Graph, Option, Schema } from "effect";
|
|
1
4
|
import { ALL_DEPENDENCY_FIELDS } from "./internal/dependencyFields.js";
|
|
2
5
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
3
|
-
import { Effect, Graph, Option, Schema } from "effect";
|
|
4
|
-
import { DependencyField } from "@effected/npm";
|
|
5
|
-
import { GlobSet } from "@effected/glob";
|
|
6
6
|
|
|
7
7
|
// src/WorkspaceLayering.ts
|
|
8
8
|
/**
|
package/WorkspacePackage.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Effect, FileSystem, Option, Schema } from "effect";
|
|
2
|
-
import { Package, PackageJsonFormat } from "@effected/package-json";
|
|
3
1
|
import { GlobPattern } from "@effected/glob";
|
|
4
2
|
import { WorkspaceManifest } from "@effected/lockfiles";
|
|
3
|
+
import { Package, PackageJsonFormat } from "@effected/package-json";
|
|
4
|
+
import { Effect, FileSystem, Option, Schema } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/WorkspacePackage.ts
|
|
7
7
|
const EMPTY = Object.freeze(Object.create(null));
|
package/WorkspaceRoot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WorkspaceRootMatch, probedMarkers } from "./WorkspaceMarker.js";
|
|
2
|
-
import { Context, Effect, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
3
1
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
4
2
|
import { Walker } from "@effected/walker";
|
|
3
|
+
import { Context, Effect, FileSystem, Layer, Option, Path, Result, Schema } from "effect";
|
|
4
|
+
import { WorkspaceRootMatch, probedMarkers } from "./WorkspaceMarker.js";
|
|
5
5
|
|
|
6
6
|
// src/WorkspaceRoot.ts
|
|
7
7
|
/** How the not-found message names the `package.json` marker: only one with a `workspaces` field counts. */
|
package/WorkspaceSnapshots.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { Git } from "@effected/git";
|
|
2
|
+
import { Lockfile, filenameFor } from "@effected/lockfiles";
|
|
3
|
+
import { CatalogAssemblyError } from "@effected/npm";
|
|
4
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
5
|
+
import { Yaml } from "@effected/yaml";
|
|
6
|
+
import { Context, Duration, Effect, Exit, Layer, Option, Predicate, Result } from "effect";
|
|
1
7
|
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
2
8
|
import { isStringRecord } from "./internal/guards.js";
|
|
3
9
|
import { importerVersionsOf } from "./internal/importerVersions.js";
|
|
@@ -8,12 +14,6 @@ import { CatalogSet, WorkspaceCatalogs, injectFromDocument } from "./WorkspaceCa
|
|
|
8
14
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
9
15
|
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
10
16
|
import { PackageStateSnapshot, WorkspaceStateSnapshot } from "./WorkspaceStateSnapshot.js";
|
|
11
|
-
import { Git } from "@effected/git";
|
|
12
|
-
import { Context, Duration, Effect, Exit, Layer, Option, Predicate, Result } from "effect";
|
|
13
|
-
import { CatalogAssemblyError } from "@effected/npm";
|
|
14
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
15
|
-
import { Yaml } from "@effected/yaml";
|
|
16
|
-
import { Lockfile, filenameFor } from "@effected/lockfiles";
|
|
17
17
|
|
|
18
18
|
// src/WorkspaceSnapshots.ts
|
|
19
19
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { CatalogResolver, DependencyResolutionError, DependencySpecifier, WorkspaceResolver } from "@effected/npm";
|
|
2
|
+
import { Effect, Exit, Layer, Option, Schema, SchemaTransformation } from "effect";
|
|
1
3
|
import { unanimousVersionOf } from "./internal/importerVersions.js";
|
|
2
4
|
import { CatalogSet } from "./WorkspaceCatalogs.js";
|
|
3
|
-
import { Effect, Exit, Layer, Option, Schema, SchemaTransformation } from "effect";
|
|
4
|
-
import { CatalogResolver, DependencyResolutionError, DependencySpecifier, WorkspaceResolver } from "@effected/npm";
|
|
5
5
|
|
|
6
6
|
// src/WorkspaceStateSnapshot.ts
|
|
7
7
|
/** `record[key]` when `key` is the record's own property; never an inherited member. */
|
package/Workspaces.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { LocalExec, LocalExecError } from "@effected/commands";
|
|
2
|
+
import { Git } from "@effected/git";
|
|
3
|
+
import { Effect, Layer, Option } from "effect";
|
|
1
4
|
import { ChangeDetector } from "./ChangeDetector.js";
|
|
2
5
|
import { ConfigDependencyHooks } from "./ConfigDependencyHooks.js";
|
|
3
6
|
import { layerFindOptions } from "./internal/layerRoot.js";
|
|
@@ -7,9 +10,6 @@ import { WorkspaceCatalogs } from "./WorkspaceCatalogs.js";
|
|
|
7
10
|
import { WorkspaceDiscovery } from "./WorkspaceDiscovery.js";
|
|
8
11
|
import { WorkspaceRoot } from "./WorkspaceRoot.js";
|
|
9
12
|
import { WorkspaceSnapshots } from "./WorkspaceSnapshots.js";
|
|
10
|
-
import { Git } from "@effected/git";
|
|
11
|
-
import { Effect, Layer, Option } from "effect";
|
|
12
|
-
import { LocalExec, LocalExecError } from "@effected/commands";
|
|
13
13
|
|
|
14
14
|
// src/Workspaces.ts
|
|
15
15
|
const compose = (options, hooks) => {
|
package/WorkspacesSync.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { LocalExec, LocalExecError } from "@effected/commands";
|
|
2
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
3
|
+
import { Yaml } from "@effected/yaml";
|
|
4
|
+
import { Effect, Exit, Option, Result, Schema } from "effect";
|
|
1
5
|
import { isStringRecord } from "./internal/guards.js";
|
|
2
6
|
import { membershipOf, rulesFor } from "./internal/membership.js";
|
|
3
7
|
import { decidePackageManager } from "./internal/packageManagerDecision.js";
|
|
@@ -7,10 +11,6 @@ import { PackageManagerDetectionError, PackageManagerEvidence, verdictResult } f
|
|
|
7
11
|
import { WorkspaceDiscoveryError, WorkspacePatternError } from "./WorkspaceDiscovery.js";
|
|
8
12
|
import { WorkspaceRootMatch, probedMarkers } from "./WorkspaceMarker.js";
|
|
9
13
|
import { PublishConfig, WorkspaceManifestError, WorkspacePackage } from "./WorkspacePackage.js";
|
|
10
|
-
import { Effect, Exit, Option, Result, Schema } from "effect";
|
|
11
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
12
|
-
import { Yaml } from "@effected/yaml";
|
|
13
|
-
import { LocalExec, LocalExecError } from "@effected/commands";
|
|
14
14
|
|
|
15
15
|
// src/WorkspacesSync.ts
|
|
16
16
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { carries, manifestVersion, messageOf, sideLabel } from "./configDependencyShared.js";
|
|
2
|
-
import { splitConfigDependencySpec } from "./configDependencySpecGrammar.js";
|
|
3
|
-
import { Duration, Effect, Predicate } from "effect";
|
|
4
|
-
import { IntegrityHash } from "@effected/npm";
|
|
5
|
-
import { Yaml } from "@effected/yaml";
|
|
6
|
-
import { Run } from "@effected/commands";
|
|
7
|
-
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
8
1
|
import { copyFile, mkdtemp, readFile, realpath, rm, writeFile } from "node:fs/promises";
|
|
9
2
|
import { tmpdir } from "node:os";
|
|
10
3
|
import { basename, dirname, join } from "node:path";
|
|
4
|
+
import { Run } from "@effected/commands";
|
|
5
|
+
import { IntegrityHash } from "@effected/npm";
|
|
6
|
+
import { Yaml } from "@effected/yaml";
|
|
7
|
+
import { Duration, Effect, Predicate } from "effect";
|
|
8
|
+
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
9
|
+
import { carries, manifestVersion, messageOf, sideLabel } from "./configDependencyShared.js";
|
|
10
|
+
import { splitConfigDependencySpec } from "./configDependencySpecGrammar.js";
|
|
11
11
|
|
|
12
12
|
// src/internal/configDependencyFetch.ts
|
|
13
13
|
const fetchFailure = (reason, message, cause) => cause === void 0 ? {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { carries, hooksError, ioOrNone, manifestVersion, sideLabel } from "./configDependencyShared.js";
|
|
2
|
-
import { splitConfigDependencySpec } from "./configDependencySpecGrammar.js";
|
|
3
|
-
import { Array, Config, Duration, Effect, Exit, Option, Predicate, Result } from "effect";
|
|
4
|
-
import { PackageManagerCache } from "@effected/npm";
|
|
5
|
-
import { Yaml } from "@effected/yaml";
|
|
6
|
-
import { PnpmEnvLockfile } from "@effected/lockfiles";
|
|
7
1
|
import { readFile, readdir, realpath } from "node:fs/promises";
|
|
8
2
|
import { homedir } from "node:os";
|
|
9
3
|
import { basename, dirname, join } from "node:path";
|
|
4
|
+
import { PnpmEnvLockfile } from "@effected/lockfiles";
|
|
5
|
+
import { PackageManagerCache } from "@effected/npm";
|
|
6
|
+
import { Yaml } from "@effected/yaml";
|
|
7
|
+
import { Array, Config, Duration, Effect, Exit, Option, Predicate, Result } from "effect";
|
|
8
|
+
import { carries, hooksError, ioOrNone, manifestVersion, sideLabel } from "./configDependencyShared.js";
|
|
9
|
+
import { splitConfigDependencySpec } from "./configDependencySpecGrammar.js";
|
|
10
10
|
|
|
11
11
|
// src/internal/configDependencyResolution.ts
|
|
12
12
|
/** The pnpmfile filenames a config dependency may ship, in the order pnpm tries them. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { causeMessage } from "./causeMessage.js";
|
|
2
|
-
import { Effect, Option, Predicate, Result } from "effect";
|
|
3
|
-
import { CatalogAssemblyError } from "@effected/npm";
|
|
4
|
-
import { PackageJsonFormat } from "@effected/package-json";
|
|
5
1
|
import { readFile } from "node:fs/promises";
|
|
6
2
|
import { join } from "node:path";
|
|
3
|
+
import { CatalogAssemblyError } from "@effected/npm";
|
|
4
|
+
import { PackageJsonFormat } from "@effected/package-json";
|
|
5
|
+
import { Effect, Option, Predicate, Result } from "effect";
|
|
6
|
+
import { causeMessage } from "./causeMessage.js";
|
|
7
7
|
|
|
8
8
|
// src/internal/configDependencyShared.ts
|
|
9
9
|
/** The typed `hooks`-source failure every rung of the ladder reports through. */
|
package/internal/enumerate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative } from "./traverse.js";
|
|
2
1
|
import { Effect, FileSystem, Path } from "effect";
|
|
2
|
+
import { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative } from "./traverse.js";
|
|
3
3
|
|
|
4
4
|
// src/internal/enumerate.ts
|
|
5
5
|
/** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
|
package/internal/membership.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { decidePackageManager } from "./packageManagerDecision.js";
|
|
2
|
-
import { Option, Result } from "effect";
|
|
3
|
-
import { NpmWorkspacePatterns } from "@effected/npm";
|
|
4
1
|
import { GlobSet } from "@effected/glob";
|
|
2
|
+
import { NpmWorkspacePatterns } from "@effected/npm";
|
|
3
|
+
import { Option, Result } from "effect";
|
|
4
|
+
import { decidePackageManager } from "./packageManagerDecision.js";
|
|
5
5
|
|
|
6
6
|
// src/internal/membership.ts
|
|
7
7
|
/** The rules for a root that is not npm's. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Option, Predicate, Schema } from "effect";
|
|
2
1
|
import { PackageManager } from "@effected/package-json";
|
|
2
|
+
import { Option, Predicate, Schema } from "effect";
|
|
3
3
|
|
|
4
4
|
// src/internal/packageManagerDecision.ts
|
|
5
5
|
/** The marker FILES the decision may ask about, in the order it asks. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RUNTIME_DEPENDENCY_FIELDS } from "./dependencyFields.js";
|
|
2
|
-
import { Predicate, Result } from "effect";
|
|
3
1
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
2
|
+
import { Predicate, Result } from "effect";
|
|
3
|
+
import { RUNTIME_DEPENDENCY_FIELDS } from "./dependencyFields.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/packedInstallPlan.ts
|
|
6
6
|
/** Variables that carry the PARENT run's context into a child package manager. */
|
package/internal/patterns.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Effect, FileSystem, Option, Path, Result } from "effect";
|
|
2
1
|
import { PackageJsonFormat } from "@effected/package-json";
|
|
3
2
|
import { Yaml } from "@effected/yaml";
|
|
3
|
+
import { Effect, FileSystem, Option, Path, Result } from "effect";
|
|
4
4
|
|
|
5
5
|
// src/internal/patterns.ts
|
|
6
6
|
/** The string entries of `value` when it is an array, else `undefined`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { stringsOf } from "./patterns.js";
|
|
2
|
-
import { Predicate } from "effect";
|
|
3
1
|
import { PeerDependencyRules } from "@effected/pnpm";
|
|
2
|
+
import { Predicate } from "effect";
|
|
3
|
+
import { stringsOf } from "./patterns.js";
|
|
4
4
|
|
|
5
5
|
// src/internal/workspaceYaml.ts
|
|
6
6
|
/** The `configDependencies` map (name → version+integrity) of a parsed pnpm-workspace document. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/workspaces",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
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": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@effected/bun": "^0.1.0",
|
|
55
55
|
"@effected/commands": "^0.22.0",
|
|
56
|
-
"@effected/git": "^0.
|
|
56
|
+
"@effected/git": "^0.33.0",
|
|
57
57
|
"@effected/glob": "^0.23.0",
|
|
58
58
|
"@effected/jsonc": "^0.25.0",
|
|
59
59
|
"@effected/lockfiles": "^0.27.0",
|