@effected/workspaces 0.34.0 → 0.36.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.
Files changed (48) hide show
  1. package/ChangeDetector.js +1 -2
  2. package/ConfigDependencyHooks.js +1 -2
  3. package/ConfigDependencySpec.js +1 -2
  4. package/DependencyGraph.js +1 -2
  5. package/DuplicateCheck.js +1 -2
  6. package/ImportGraph.js +6 -5
  7. package/LayerPolicy.js +1 -2
  8. package/LockfileReader.js +1 -2
  9. package/PackageManagerName.js +1 -2
  10. package/PackedInstall.js +1 -2
  11. package/PeerCheck.js +1 -2
  12. package/Publishability.js +1 -2
  13. package/ReleaseTag.js +1 -2
  14. package/SourceBoundary.js +1 -2
  15. package/VersioningStrategy.js +1 -2
  16. package/WorkspaceCatalogs.js +1 -2
  17. package/WorkspaceDiscovery.js +1 -2
  18. package/WorkspaceLayering.js +1 -2
  19. package/WorkspacePackage.js +1 -2
  20. package/WorkspaceRoot.js +1 -2
  21. package/WorkspaceSnapshots.js +1 -2
  22. package/WorkspaceStateSnapshot.js +1 -2
  23. package/Workspaces.js +1 -2
  24. package/WorkspacesSync.js +1 -2
  25. package/index.d.ts +0 -38
  26. package/internal/catalogs.js +1 -2
  27. package/internal/configDependencyFetch.js +1 -2
  28. package/internal/configDependencyResolution.js +1 -2
  29. package/internal/configDependencyShared.js +1 -2
  30. package/internal/configDependencySpecGrammar.js +1 -2
  31. package/internal/dependencyFields.js +1 -2
  32. package/internal/enumerate.js +1 -2
  33. package/internal/importPosition.js +1 -2
  34. package/internal/importerVersions.js +1 -2
  35. package/internal/layerRoot.js +1 -2
  36. package/internal/limits.js +1 -2
  37. package/internal/packedInstallPlan.js +1 -2
  38. package/internal/patterns.js +1 -2
  39. package/internal/peerPatterns.js +1 -2
  40. package/internal/roots.js +1 -2
  41. package/internal/sourceText.js +1 -2
  42. package/internal/sourceWalk.js +1 -2
  43. package/internal/traverse.js +1 -2
  44. package/internal/workspaceYaml.js +1 -2
  45. package/node-sync.d.ts +0 -4
  46. package/node-sync.js +1 -2
  47. package/package.json +11 -11
  48. package/testing.d.ts +0 -18
package/ChangeDetector.js CHANGED
@@ -3,7 +3,7 @@ import { DependencyGraph } from "./DependencyGraph.js";
3
3
  import { Git } from "@effected/git";
4
4
  import { Context, Effect, Layer, Schema } from "effect";
5
5
 
6
- //#region src/ChangeDetector.ts
6
+ // src/ChangeDetector.ts
7
7
  /**
8
8
  * Which git refs to compare, and whether to fold in the working tree.
9
9
  *
@@ -150,5 +150,4 @@ var ChangeDetector = class ChangeDetector extends Context.Service()("@effected/w
150
150
  static layer = Layer.effect(ChangeDetector, ChangeDetector.make);
151
151
  };
152
152
 
153
- //#endregion
154
153
  export { ChangeDetectionError, ChangeDetectionOptions, ChangeDetector };
@@ -7,7 +7,7 @@ import { pathToFileURL } from "node:url";
7
7
  import { Run } from "@effected/commands";
8
8
  import { ChildProcess, ChildProcessSpawner } from "effect/process";
9
9
 
10
- //#region src/ConfigDependencyHooks.ts
10
+ // src/ConfigDependencyHooks.ts
11
11
  /**
12
12
  * The empty {@link PeerDependencyRules}: every axis present and empty.
13
13
  *
@@ -559,5 +559,4 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends Context.Service(
559
559
  }));
560
560
  };
561
561
 
562
- //#endregion
563
562
  export { ConfigDependencyHooks, NoPeerDependencyRules };
@@ -3,7 +3,7 @@ import { Effect, Exit, Option, Result, Schema, SchemaIssue, SchemaTransformation
3
3
  import { SriIntegrityHash } from "@effected/npm";
4
4
  import { SemVer } from "@effected/semver";
5
5
 
6
- //#region src/ConfigDependencySpec.ts
6
+ // src/ConfigDependencySpec.ts
7
7
  /**
8
8
  * Indicates that a string could not be parsed as a pnpm `configDependencies`
9
9
  * spec (`<version>[+<integrity>]`).
@@ -166,5 +166,4 @@ var ConfigDependencySpec = class ConfigDependencySpec extends Schema.Class("Conf
166
166
  }
167
167
  };
168
168
 
169
- //#endregion
170
169
  export { ConfigDependencySpec, InvalidConfigDependencySpecError };
@@ -2,7 +2,7 @@ import { WorkspacePackage } from "./WorkspacePackage.js";
2
2
  import { PackageNotFoundError } from "./WorkspaceDiscovery.js";
3
3
  import { Effect, Graph, Schema } from "effect";
4
4
 
5
- //#region src/DependencyGraph.ts
5
+ // src/DependencyGraph.ts
6
6
  /**
7
7
  * Raised when the workspace dependency graph cannot be topologically ordered
8
8
  * because it contains a cycle.
@@ -311,5 +311,4 @@ const kahn = (edges) => {
311
311
  };
312
312
  };
313
313
 
314
- //#endregion
315
314
  export { CyclicDependencyError, DependencyGraph };
package/DuplicateCheck.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { indexInstances, rootInstances } from "./internal/roots.js";
2
2
  import { Schema } from "effect";
3
3
 
4
- //#region src/DuplicateCheck.ts
4
+ // src/DuplicateCheck.ts
5
5
  /**
6
6
  * Who pulls one resolved instance into the graph.
7
7
  *
@@ -290,5 +290,4 @@ const dependentOf = (from) => from.isWorkspace && from.relativePath !== void 0 ?
290
290
  /** @internal */
291
291
  const renderKey = (dependent) => dependent._tag === "importer" ? `importer\0${dependent.path}` : `package\0${dependent.name}\0${dependent.version}`;
292
292
 
293
- //#endregion
294
293
  export { Dependent, DuplicateCheck, DuplicateInstance, DuplicatedPackage, DuplicatedVersion };
package/ImportGraph.js CHANGED
@@ -6,7 +6,7 @@ import { SourceBoundary } from "./SourceBoundary.js";
6
6
  import { Effect, FileSystem, Option, Path, Schema } from "effect";
7
7
  import { GlobSet } from "@effected/glob";
8
8
 
9
- //#region src/ImportGraph.ts
9
+ // src/ImportGraph.ts
10
10
  /**
11
11
  * The entries list named no file to start from, so a walk would prove nothing.
12
12
  *
@@ -450,12 +450,14 @@ var ImportGraph = class {
450
450
  const packages = yield* discovery.listPackages();
451
451
  /**
452
452
  * Whether `file` sits under the directory `dir`: the relative path from
453
- * `dir` to `file` stays inside it. A drive or root mismatch surfaces as
454
- * an absolute relative path and reads as not under.
453
+ * `dir` to `file` stays inside it, so `dir` itself is not under it, and
454
+ * neither is `dir`'s direct parent, which `path.relative` answers as
455
+ * `..` rather than a `..${sep}` prefix. A drive or root mismatch
456
+ * surfaces as an absolute relative path and reads as not under.
455
457
  */
456
458
  const under = (file, dir) => {
457
459
  const rel = path.relative(dir, file);
458
- return rel !== "" && rel !== "." && !path.isAbsolute(rel) && !rel.startsWith(`..${path.sep}`);
460
+ return rel !== "" && rel !== "." && rel !== ".." && !path.isAbsolute(rel) && !rel.startsWith(`..${path.sep}`);
459
461
  };
460
462
  /**
461
463
  * The innermost package owning `file`, or `undefined` when no package
@@ -521,5 +523,4 @@ var ImportGraph = class {
521
523
  });
522
524
  };
523
525
 
524
- //#endregion
525
526
  export { EntryNotFoundError, ImportGraph, NoEntriesError, ReachOffence, ReachabilityScan, UndeclaredImport, UndeclaredScan, UnresolvedImport };
package/LayerPolicy.js CHANGED
@@ -3,7 +3,7 @@ import { Effect, FileSystem, Result, Schema } from "effect";
3
3
  import { GlobSet } from "@effected/glob";
4
4
  import { DependencyField } from "@effected/npm";
5
5
 
6
- //#region src/LayerPolicy.ts
6
+ // src/LayerPolicy.ts
7
7
  const REQUIRED_EDGE = /^\S+ -> \S+$/u;
8
8
  /** `input` without `keys`, when it is a plain object; anything else passes through for the schema to reject. */
9
9
  const withoutKeys = (input, keys) => {
@@ -129,5 +129,4 @@ var LayerPolicy = class LayerPolicy extends Schema.Class("LayerPolicy")({
129
129
  });
130
130
  };
131
131
 
132
- //#endregion
133
132
  export { LayerPolicy, LayerPolicyError };
package/LockfileReader.js CHANGED
@@ -5,7 +5,7 @@ import { PackageManagerDetector } from "./PackageManagerName.js";
5
5
  import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Schema } from "effect";
6
6
  import { Lockfile, LockfileFormat, LockfileIntegrity, filenameFor } from "@effected/lockfiles";
7
7
 
8
- //#region src/LockfileReader.ts
8
+ // src/LockfileReader.ts
9
9
  /**
10
10
  * Raised when the workspace's lockfile cannot be read off disk.
11
11
  *
@@ -192,5 +192,4 @@ var LockfileReader = class LockfileReader extends Context.Service()("@effected/w
192
192
  static layerTest = (overrides = {}) => Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
193
193
  };
194
194
 
195
- //#endregion
196
195
  export { LockfileReadError, LockfileReader };
@@ -2,7 +2,7 @@ import { WorkspaceManifestError } from "./WorkspacePackage.js";
2
2
  import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
3
3
  import { PackageManager } from "@effected/package-json";
4
4
 
5
- //#region src/PackageManagerName.ts
5
+ // src/PackageManagerName.ts
6
6
  /**
7
7
  * The four package managers this package understands.
8
8
  *
@@ -376,5 +376,4 @@ var PackageManagerDetector = class PackageManagerDetector extends Context.Servic
376
376
  static layerTest = (overrides = {}) => Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
377
377
  };
378
378
 
379
- //#endregion
380
379
  export { DetectedPackageManager, PackageManagerDetectionError, PackageManagerDetector, PackageManagerEvidence, PackageManagerName };
package/PackedInstall.js CHANGED
@@ -6,7 +6,7 @@ import { Yaml } from "@effected/yaml";
6
6
  import { Run } from "@effected/commands";
7
7
  import { ChildProcess } from "effect/process";
8
8
 
9
- //#region src/PackedInstall.ts
9
+ // src/PackedInstall.ts
10
10
  /**
11
11
  * Why a packed install could not be proven.
12
12
  *
@@ -877,5 +877,4 @@ var PackedInstall = class PackedInstall {
877
877
  });
878
878
  };
879
879
 
880
- //#endregion
881
880
  export { InstalledConsumer, PackedInstall, PackedInstallError, PackedInstallResult };
package/PeerCheck.js CHANGED
@@ -3,7 +3,7 @@ import { peerNameMatcher } from "./internal/peerPatterns.js";
3
3
  import { Option, Result, Schema } from "effect";
4
4
  import { Range, SemVer } from "@effected/semver";
5
5
 
6
- //#region src/PeerCheck.ts
6
+ // src/PeerCheck.ts
7
7
  /**
8
8
  * One link in the chain from an importer to the package that declared an
9
9
  * unsatisfied peer.
@@ -799,5 +799,4 @@ const judge = (instance, peer, wanted, optional, byId) => {
799
799
  return compare(wanted, provider.version);
800
800
  };
801
801
 
802
- //#endregion
803
802
  export { PeerCheck, PeerParent, UnsatisfiedPeer };
package/Publishability.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Context, Effect, Layer, Schema } from "effect";
2
2
 
3
- //#region src/Publishability.ts
3
+ // src/Publishability.ts
4
4
  /** The public npm registry, used when `publishConfig.registry` says nothing. */
5
5
  const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
6
6
  /**
@@ -155,5 +155,4 @@ var PublishabilityDetector = class extends Context.Service()("@effected/workspac
155
155
  static layerNone = Layer.succeed(this, this.none);
156
156
  };
157
157
 
158
- //#endregion
159
158
  export { PublishTarget, PublishabilityDetector };
package/ReleaseTag.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
2
 
3
- //#region src/ReleaseTag.ts
3
+ // src/ReleaseTag.ts
4
4
  /**
5
5
  * Whether one shared tag names a whole release, or one tag names each package.
6
6
  *
@@ -257,5 +257,4 @@ var ReleaseTag = class ReleaseTag extends Schema.Class("ReleaseTag")({
257
257
  }
258
258
  };
259
259
 
260
- //#endregion
261
260
  export { ReleaseTag, TagStyle, TrackingTag, classifyTag };
package/SourceBoundary.js CHANGED
@@ -3,7 +3,7 @@ import { DEFAULT_EXTENSIONS, walkSources } from "./internal/sourceWalk.js";
3
3
  import { Effect, FileSystem, Schema } from "effect";
4
4
  import { GlobSet } from "@effected/glob";
5
5
 
6
- //#region src/SourceBoundary.ts
6
+ // src/SourceBoundary.ts
7
7
  /**
8
8
  * One place a source file breaks a {@link BoundaryRule}.
9
9
  *
@@ -595,5 +595,4 @@ var SourceBoundary = class SourceBoundary {
595
595
  static verifyFixtures = () => FIXTURES.filter((fixture) => SourceBoundary.check("fixture.ts", fixture.source, [fixture.rule]).length > 0 !== fixture.flagged).map((fixture) => `${fixture.flagged ? "missed" : "false positive"}: ${fixture.name}`);
596
596
  };
597
597
 
598
- //#endregion
599
598
  export { Offence, SourceBoundary, SourceScan };
@@ -3,7 +3,7 @@ import { PublishabilityDetector } from "./Publishability.js";
3
3
  import { ReleaseTag } from "./ReleaseTag.js";
4
4
  import { Effect, Schema } from "effect";
5
5
 
6
- //#region src/VersioningStrategy.ts
6
+ // src/VersioningStrategy.ts
7
7
  /**
8
8
  * How a workspace assigns versions across its publishable packages.
9
9
  *
@@ -132,5 +132,4 @@ var VersioningStrategy = class VersioningStrategy extends Schema.Class("Versioni
132
132
  }
133
133
  };
134
134
 
135
- //#endregion
136
135
  export { VersioningStrategy, VersioningStrategyType };
@@ -10,7 +10,7 @@ import { CatalogAssemblyError, CatalogResolver, DependencyResolutionError, Parti
10
10
  import { Yaml } from "@effected/yaml";
11
11
  import { filenameFor } from "@effected/lockfiles";
12
12
 
13
- //#region src/WorkspaceCatalogs.ts
13
+ // src/WorkspaceCatalogs.ts
14
14
  /**
15
15
  * An immutable, fully-normalized catalog collection — the one catalog
16
16
  * resolution semantic in the package.
@@ -594,5 +594,4 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends Context.Service()("@effe
594
594
  }));
595
595
  };
596
596
 
597
- //#endregion
598
597
  export { CatalogSet, WorkspaceCatalogs, injectFromDocument };
@@ -7,7 +7,7 @@ import { Context, Duration, Effect, Exit, FileSystem, Layer, Option, Path, Schem
7
7
  import { GlobSet } from "@effected/glob";
8
8
  import { DependencyResolutionError, WorkspaceResolver } from "@effected/npm";
9
9
 
10
- //#region src/WorkspaceDiscovery.ts
10
+ // src/WorkspaceDiscovery.ts
11
11
  /**
12
12
  * Raised when a workspace member's `package.json` cannot be read, parsed, or
13
13
  * used — it is missing, malformed, or lacks a `name`.
@@ -557,5 +557,4 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends Context.Service()("@ef
557
557
  };
558
558
  const isStringRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
559
559
 
560
- //#endregion
561
560
  export { PackageNotFoundError, WorkspaceDiscovery, WorkspaceDiscoveryError, WorkspaceInfo, WorkspacePatternError };
@@ -4,7 +4,7 @@ import { Effect, Graph, Option, Schema } from "effect";
4
4
  import { GlobSet } from "@effected/glob";
5
5
  import { DependencyField } from "@effected/npm";
6
6
 
7
- //#region src/WorkspaceLayering.ts
7
+ // src/WorkspaceLayering.ts
8
8
  /**
9
9
  * One dependency edge between two workspace packages, in one field.
10
10
  *
@@ -195,5 +195,4 @@ var WorkspaceLayering = class WorkspaceLayering {
195
195
  });
196
196
  };
197
197
 
198
- //#endregion
199
198
  export { LayerEdge, LayeringReport, WorkspaceLayering };
@@ -3,7 +3,7 @@ import { GlobPattern } from "@effected/glob";
3
3
  import { WorkspaceManifest } from "@effected/lockfiles";
4
4
  import { Package } from "@effected/package-json";
5
5
 
6
- //#region src/WorkspacePackage.ts
6
+ // src/WorkspacePackage.ts
7
7
  const EMPTY = Object.freeze(Object.create(null));
8
8
  const EMPTY_MANIFEST = Object.freeze(Object.create(null));
9
9
  /**
@@ -302,5 +302,4 @@ var WorkspacePackage = class WorkspacePackage extends Schema.Class("WorkspacePac
302
302
  }
303
303
  };
304
304
 
305
- //#endregion
306
305
  export { PublishConfig, WorkspaceManifestError, WorkspacePackage };
package/WorkspaceRoot.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context, Effect, FileSystem, Layer, Option, Path, Schema } from "effect";
2
2
  import { Walker } from "@effected/walker";
3
3
 
4
- //#region src/WorkspaceRoot.ts
4
+ // src/WorkspaceRoot.ts
5
5
  /**
6
6
  * The marker filenames {@link WorkspaceRoot} probes for, in priority order.
7
7
  *
@@ -189,5 +189,4 @@ var WorkspaceRoot = class WorkspaceRoot extends Context.Service()("@effected/wor
189
189
  static layerTest = (root) => Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(Layer.provide(Path.layer));
190
190
  };
191
191
 
192
- //#endregion
193
192
  export { WORKSPACE_MARKERS, WorkspaceRoot, WorkspaceRootNotFoundError };
@@ -13,7 +13,7 @@ import { CatalogAssemblyError } from "@effected/npm";
13
13
  import { Yaml } from "@effected/yaml";
14
14
  import { Lockfile, filenameFor } from "@effected/lockfiles";
15
15
 
16
- //#region src/WorkspaceSnapshots.ts
16
+ // src/WorkspaceSnapshots.ts
17
17
  /**
18
18
  * Project the live replay record onto the snapshot's `name → version` field:
19
19
  * a snapshot is "what the workspace looked like then", and WHERE this machine
@@ -329,5 +329,4 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends Context.Service()("@ef
329
329
  static layerTest = (overrides = {}) => Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
330
330
  };
331
331
 
332
- //#endregion
333
332
  export { WorkspaceSnapshots };
@@ -3,7 +3,7 @@ import { CatalogSet } from "./WorkspaceCatalogs.js";
3
3
  import { Effect, Exit, Layer, Option, Schema, SchemaTransformation } from "effect";
4
4
  import { CatalogResolver, DependencyResolutionError, DependencySpecifier, WorkspaceResolver } from "@effected/npm";
5
5
 
6
- //#region src/WorkspaceStateSnapshot.ts
6
+ // src/WorkspaceStateSnapshot.ts
7
7
  const EMPTY = Object.freeze(Object.create(null));
8
8
  const DependencyMap = Schema.Record(Schema.String, Schema.String).pipe(Schema.withDecodingDefaultKey(Effect.succeed(EMPTY)), Schema.withConstructorDefault(Effect.succeed(EMPTY)));
9
9
  /**
@@ -450,5 +450,4 @@ var WorkspaceStateSnapshot = class WorkspaceStateSnapshot extends Schema.Class("
450
450
  }
451
451
  };
452
452
 
453
- //#endregion
454
453
  export { PackageStateSnapshot, WorkspaceStateSnapshot };
package/Workspaces.js CHANGED
@@ -10,7 +10,7 @@ import { Git } from "@effected/git";
10
10
  import { Effect, Layer, Option } from "effect";
11
11
  import { ExecContext, LocalExec, LocalExecError } from "@effected/commands";
12
12
 
13
- //#region src/Workspaces.ts
13
+ // src/Workspaces.ts
14
14
  const compose = (options, hooks) => {
15
15
  const roots = WorkspaceRoot.layer;
16
16
  const detector = PackageManagerDetector.layer;
@@ -405,5 +405,4 @@ var Workspaces = class {
405
405
  static resolvers = resolvers;
406
406
  };
407
407
 
408
- //#endregion
409
408
  export { Workspaces };
package/WorkspacesSync.js CHANGED
@@ -5,7 +5,7 @@ import { Effect, Exit, Schema } from "effect";
5
5
  import { GlobSet } from "@effected/glob";
6
6
  import { Yaml } from "@effected/yaml";
7
7
 
8
- //#region src/WorkspacesSync.ts
8
+ // src/WorkspacesSync.ts
9
9
  /**
10
10
  * Read one `package.json` into a plain record, or say why not. Never throws.
11
11
  *
@@ -348,5 +348,4 @@ const getWorkspacePackagesSync = (root, options) => {
348
348
  return members;
349
349
  };
350
350
 
351
- //#endregion
352
351
  export { findWorkspaceRootSync, getWorkspacePackagesSync };
package/index.d.ts CHANGED
@@ -7,7 +7,6 @@ import { Package } from "@effected/package-json";
7
7
  import { ChildProcessSpawner } from "effect/process";
8
8
  import { SemVer } from "@effected/semver";
9
9
  import { LocalExec } from "@effected/commands";
10
- //#region src/WorkspacePackage.d.ts
11
10
  declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
12
11
  /** Scoped-package visibility. Its presence overrides `private`. */
13
12
  readonly access: Schema.optionalKey<Schema.Literals<readonly ["public", "restricted"]>>;
@@ -243,8 +242,6 @@ export declare class WorkspacePackage extends WorkspacePackage_base {
243
242
  /** Instance form of `WorkspacePackage.manifest`. */
244
243
  manifest(): Effect.Effect<Package, WorkspaceManifestError, FileSystem.FileSystem>;
245
244
  }
246
- //#endregion
247
- //#region src/WorkspaceRoot.d.ts
248
245
  /**
249
246
  * The marker filenames {@link WorkspaceRoot} probes for, in priority order.
250
247
  *
@@ -428,8 +425,6 @@ export declare class WorkspaceRoot extends WorkspaceRoot_base {
428
425
  */
429
426
  static readonly layerTest: (root: string) => Layer.Layer<WorkspaceRoot>;
430
427
  }
431
- //#endregion
432
- //#region src/WorkspaceDiscovery.d.ts
433
428
  declare const WorkspaceDiscoveryError_base: Schema.Class<WorkspaceDiscoveryError, Schema.TaggedStruct<"WorkspaceDiscoveryError", {
434
429
  /** The workspace root discovery was running against. */
435
430
  readonly root: Schema.String;
@@ -795,8 +790,6 @@ export declare class WorkspaceDiscovery extends WorkspaceDiscovery_base {
795
790
  */
796
791
  static readonly workspaceResolver: Layer.Layer<WorkspaceResolver, never, WorkspaceDiscovery>;
797
792
  }
798
- //#endregion
799
- //#region src/ChangeDetector.d.ts
800
793
  declare const ChangeDetectionOptions_base: Schema.Class<ChangeDetectionOptions, Schema.Struct<{
801
794
  /**
802
795
  * The ref to compare against.
@@ -911,8 +904,6 @@ export declare class ChangeDetector extends ChangeDetector_base {
911
904
  /** The live layer. */
912
905
  static readonly layer: Layer.Layer<ChangeDetector, never, Git | WorkspaceDiscovery>;
913
906
  }
914
- //#endregion
915
- //#region src/ConfigDependencyHooks.d.ts
916
907
  /**
917
908
  * pnpm's `peerDependencyRules` block — the suppression policy pnpm applies
918
909
  * **after** computing peer violations, in pnpm's own shape.
@@ -1297,8 +1288,6 @@ export declare class ConfigDependencyHooks extends ConfigDependencyHooks_base {
1297
1288
  */
1298
1289
  static readonly layerSubprocess: Layer.Layer<ConfigDependencyHooks, never, ChildProcessSpawner.ChildProcessSpawner>;
1299
1290
  }
1300
- //#endregion
1301
- //#region src/ConfigDependencySpec.d.ts
1302
1291
  declare const InvalidConfigDependencySpecError_base: Schema.Class<InvalidConfigDependencySpecError, Schema.TaggedStruct<"InvalidConfigDependencySpecError", {
1303
1292
  /** The raw spec string that failed validation. */
1304
1293
  readonly input: Schema.String;
@@ -1448,8 +1437,6 @@ export declare class ConfigDependencySpec extends ConfigDependencySpec_base {
1448
1437
  */
1449
1438
  toString(): string;
1450
1439
  }
1451
- //#endregion
1452
- //#region src/DependencyGraph.d.ts
1453
1440
  declare const CyclicDependencyError_base: Schema.Class<CyclicDependencyError, Schema.TaggedStruct<"CyclicDependencyError", {
1454
1441
  /** The packages participating in the cycle. */
1455
1442
  readonly cycle: Schema.$Array<Schema.String>;
@@ -1564,8 +1551,6 @@ export declare class DependencyGraph extends DependencyGraph_base {
1564
1551
  */
1565
1552
  toMermaid(): string;
1566
1553
  }
1567
- //#endregion
1568
- //#region src/DuplicateCheck.d.ts
1569
1554
  /**
1570
1555
  * Options for {@link DuplicateCheck.run}.
1571
1556
  *
@@ -1784,8 +1769,6 @@ export declare class DuplicateCheck extends DuplicateCheck_base {
1784
1769
  */
1785
1770
  static run(lockfile: Lockfile, options?: DuplicateCheckOptions): DuplicateCheck;
1786
1771
  }
1787
- //#endregion
1788
- //#region src/PackageManagerName.d.ts
1789
1772
  /**
1790
1773
  * The four package managers this package understands.
1791
1774
  *
@@ -1998,8 +1981,6 @@ export declare class PackageManagerDetector extends PackageManagerDetector_base
1998
1981
  */
1999
1982
  static readonly layerTest: (overrides?: Partial<PackageManagerDetectorShape>) => Layer.Layer<PackageManagerDetector>;
2000
1983
  }
2001
- //#endregion
2002
- //#region src/LockfileReader.d.ts
2003
1984
  declare const LockfileReadError_base: Schema.Class<LockfileReadError, Schema.TaggedStruct<"LockfileReadError", {
2004
1985
  /** Absolute path to the lockfile that could not be read. */
2005
1986
  readonly lockfilePath: Schema.String;
@@ -2186,8 +2167,6 @@ export declare class LockfileReader extends LockfileReader_base {
2186
2167
  */
2187
2168
  static readonly layerTest: (overrides?: Partial<LockfileReaderShape>) => Layer.Layer<LockfileReader>;
2188
2169
  }
2189
- //#endregion
2190
- //#region src/WorkspaceCatalogs.d.ts
2191
2170
  /**
2192
2171
  * Each importer's dependency-name → resolved-version map, keyed by importer path
2193
2172
  * (`"."` for the root package — the same keys `WorkspaceDiscovery.importerMap()`
@@ -2596,8 +2575,6 @@ export declare class WorkspaceCatalogs extends WorkspaceCatalogs_base {
2596
2575
  */
2597
2576
  static readonly catalogResolver: Layer.Layer<CatalogResolver, never, WorkspaceCatalogs>;
2598
2577
  }
2599
- //#endregion
2600
- //#region src/PeerCheck.d.ts
2601
2578
  /**
2602
2579
  * Why a report is not a complete answer.
2603
2580
  *
@@ -2942,8 +2919,6 @@ export declare class PeerCheck extends PeerCheck_base {
2942
2919
  */
2943
2920
  static run(lockfile: Lockfile, options?: PeerCheckOptions): PeerCheck;
2944
2921
  }
2945
- //#endregion
2946
- //#region src/Publishability.d.ts
2947
2922
  declare const PublishTarget_base: Schema.Class<PublishTarget, Schema.Struct<{
2948
2923
  /** The package name being published. */
2949
2924
  readonly name: Schema.NonEmptyString;
@@ -3114,8 +3089,6 @@ export declare class PublishabilityDetector extends PublishabilityDetector_base
3114
3089
  */
3115
3090
  static readonly layerNone: Layer.Layer<PublishabilityDetector>;
3116
3091
  }
3117
- //#endregion
3118
- //#region src/ReleaseTag.d.ts
3119
3092
  /**
3120
3093
  * Whether one shared tag names a whole release, or one tag names each package.
3121
3094
  *
@@ -3339,8 +3312,6 @@ export declare class ReleaseTag extends ReleaseTag_base {
3339
3312
  */
3340
3313
  static scoped(packageName: string, version: string, options?: TagFormatOptions): ReleaseTag;
3341
3314
  }
3342
- //#endregion
3343
- //#region src/VersioningStrategy.d.ts
3344
3315
  /**
3345
3316
  * How a workspace assigns versions across its publishable packages.
3346
3317
  *
@@ -3487,8 +3458,6 @@ export declare class VersioningStrategy extends VersioningStrategy_base {
3487
3458
  */
3488
3459
  tagsFor(releases: ReadonlyArray<PackageRelease>, options?: TagFormatOptions): ReadonlyArray<ReleaseTag>;
3489
3460
  }
3490
- //#endregion
3491
- //#region src/WorkspaceStateSnapshot.d.ts
3492
3461
  declare const PackageStateSnapshot_base: Schema.Class<PackageStateSnapshot, Schema.Struct<{
3493
3462
  /** The package name. */
3494
3463
  readonly name: Schema.NonEmptyString;
@@ -3825,8 +3794,6 @@ export declare class WorkspaceStateSnapshot extends WorkspaceStateSnapshot_base
3825
3794
  /** Both snapshot-scoped resolver layers merged. Built once per instance and cached. */
3826
3795
  get resolvers(): Layer.Layer<CatalogResolver | WorkspaceResolver>;
3827
3796
  }
3828
- //#endregion
3829
- //#region src/WorkspaceSnapshots.d.ts
3830
3797
  /**
3831
3798
  * Every failure `WorkspaceSnapshots.at` can surface: git's own typed
3832
3799
  * errors, a catalog-assembly failure from the inline config source or the
@@ -4047,8 +4014,6 @@ export declare class WorkspaceSnapshots extends WorkspaceSnapshots_base {
4047
4014
  */
4048
4015
  static readonly layerTest: (overrides?: Partial<WorkspaceSnapshotsShape>) => Layer.Layer<WorkspaceSnapshots>;
4049
4016
  }
4050
- //#endregion
4051
- //#region src/Workspaces.d.ts
4052
4017
  /**
4053
4018
  * Options shared by the composite layers.
4054
4019
  *
@@ -4449,8 +4414,6 @@ export declare class Workspaces {
4449
4414
  */
4450
4415
  static readonly resolvers: Layer.Layer<CatalogResolver | WorkspaceResolver, never, WorkspaceCatalogs | WorkspaceDiscovery>;
4451
4416
  }
4452
- //#endregion
4453
- //#region src/WorkspacesSync.d.ts
4454
4417
  /**
4455
4418
  * The synchronous file operations the sync entry points need, supplied by the
4456
4419
  * consumer. Node's built-ins satisfy it directly:
@@ -4795,6 +4758,5 @@ interface GetWorkspacePackagesSyncOptions extends WorkspacesSyncOptions {
4795
4758
  * @public
4796
4759
  */
4797
4760
  export declare const getWorkspacePackagesSync: (root: string, options: GetWorkspacePackagesSyncOptions) => ReadonlyArray<WorkspacePackage>;
4798
- //#endregion
4799
4761
  export type { CatalogAssemblyFailure, ChangeDetectionFailure, ChangeDetectorShape, ClassifyOptions, ConfigDependencyHooksShape, DependencyDiff, DuplicateCheckOptions, FindWorkspaceRootOptions, FindWorkspaceRootSyncOptions, GetWorkspacePackagesSyncOptions, HookInjection, HookReplay, HookReplayContext, HookReplaySource, ImporterVersions, LockfileReadFailure, LockfileReaderOptions, LockfileReaderShape, PackageManagerDetectionFailure, PackageManagerDetectorShape, PackageRelease, PeerCheckOptions, PeerDependencyRules, PublishabilityDetectorShape, SyncDirectoryEntry, SyncFileSystem, SyncPath, TagClassification, TagFormatOptions, TrackingTagOptions, UnverifiedReason, VersioningDetectOptions, WorkspaceCatalogsOptions, WorkspaceCatalogsShape, WorkspaceDiscoveryFailure, WorkspaceDiscoveryOptions, WorkspaceDiscoveryShape, WorkspaceDiscoverySkip, WorkspaceDiscoverySkipKind, WorkspaceLookupFailure, WorkspaceRootShape, WorkspaceSnapshotAtFailure, WorkspaceSnapshotWorktreeFailure, WorkspaceSnapshotsOptions, WorkspaceSnapshotsShape, WorkspacesGitOptions, WorkspacesOptions, WorkspacesServices, WorkspacesSyncOptions };
4800
4762
  //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,7 @@ import { getCatalogsFromWorkspaceManifest, mergeCatalogs } from "@pnpm/catalogs.
2
2
  import { parseCatalogProtocol } from "@pnpm/catalogs.protocol-parser";
3
3
  import { matchCatalogResolveResult, resolveFromCatalog } from "@pnpm/catalogs.resolver";
4
4
 
5
- //#region src/internal/catalogs.ts
5
+ // src/internal/catalogs.ts
6
6
  /** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
7
7
  const inlineCatalogs = (manifest) => {
8
8
  if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
@@ -67,5 +67,4 @@ const rangeOf = (catalogs, dependency, specifier) => {
67
67
  });
68
68
  };
69
69
 
70
- //#endregion
71
70
  export { catalogNameOf, inlineCatalogs, merge, normalize, rangeOf };
@@ -9,7 +9,7 @@ import { copyFile, mkdtemp, readFile, realpath, rm, writeFile } from "node:fs/pr
9
9
  import { tmpdir } from "node:os";
10
10
  import { basename, dirname, join } from "node:path";
11
11
 
12
- //#region src/internal/configDependencyFetch.ts
12
+ // src/internal/configDependencyFetch.ts
13
13
  const fetchFailure = (reason, message, cause) => cause === void 0 ? {
14
14
  reason,
15
15
  message
@@ -175,5 +175,4 @@ const makeFetchConfigDependency = (spawner) => (request) => Effect.scoped(Effect
175
175
  return resolved;
176
176
  }));
177
177
 
178
- //#endregion
179
178
  export { expectedIntegrity, fetchArgs, makeFetchConfigDependency, registrySettingsOf, scratchWorkspaceYaml, storeDirArgument };
@@ -8,7 +8,7 @@ import { readFile, readdir, realpath } from "node:fs/promises";
8
8
  import { homedir } from "node:os";
9
9
  import { basename, dirname, join } from "node:path";
10
10
 
11
- //#region src/internal/configDependencyResolution.ts
11
+ // src/internal/configDependencyResolution.ts
12
12
  /** The pnpmfile filenames a config dependency may ship, in the order pnpm tries them. */
13
13
  const PNPMFILE_CANDIDATES = [
14
14
  "pnpmfile.mjs",
@@ -330,5 +330,4 @@ const lookupPnpmfiles = (entries, configDependencies) => Effect.flatMap(declared
330
330
  });
331
331
  }));
332
332
 
333
- //#endregion
334
333
  export { lookupPnpmfiles, resolvePnpmfiles };
@@ -3,7 +3,7 @@ import { CatalogAssemblyError } from "@effected/npm";
3
3
  import { readFile } from "node:fs/promises";
4
4
  import { join } from "node:path";
5
5
 
6
- //#region src/internal/configDependencyShared.ts
6
+ // src/internal/configDependencyShared.ts
7
7
  /** The typed `hooks`-source failure every rung of the ladder reports through. */
8
8
  const hooksError = (path, cause, reason) => new CatalogAssemblyError({
9
9
  source: "hooks",
@@ -47,5 +47,4 @@ const manifestVersion = (name, dir) => ioOrNone(name, () => readFile(join(dir, "
47
47
  } : UNVERSIONED));
48
48
  }));
49
49
 
50
- //#endregion
51
50
  export { carries, hooksError, ioOrNone, manifestVersion, messageOf, sideLabel };
@@ -1,4 +1,4 @@
1
- //#region src/internal/configDependencySpecGrammar.ts
1
+ // src/internal/configDependencySpecGrammar.ts
2
2
  /** Split a spec on its first `+`: `0.9.0+sha512-…` → `{ version: "0.9.0", integrity: "sha512-…" }`. */
3
3
  const splitConfigDependencySpec = (spec) => {
4
4
  const plus = spec.indexOf("+");
@@ -11,5 +11,4 @@ const splitConfigDependencySpec = (spec) => {
11
11
  };
12
12
  };
13
13
 
14
- //#endregion
15
14
  export { splitConfigDependencySpec };
@@ -1,4 +1,4 @@
1
- //#region src/internal/dependencyFields.ts
1
+ // src/internal/dependencyFields.ts
2
2
  /** Every dependency map a manifest declares, in manifest order. */
3
3
  const ALL_DEPENDENCY_FIELDS = [
4
4
  "dependencies",
@@ -13,5 +13,4 @@ const RUNTIME_DEPENDENCY_FIELDS = [
13
13
  "peerDependencies"
14
14
  ];
15
15
 
16
- //#endregion
17
16
  export { ALL_DEPENDENCY_FIELDS, RUNTIME_DEPENDENCY_FIELDS };
@@ -1,7 +1,7 @@
1
1
  import { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative } from "./traverse.js";
2
2
  import { Effect, FileSystem, Path } from "effect";
3
3
 
4
- //#region src/internal/enumerate.ts
4
+ // src/internal/enumerate.ts
5
5
  /** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
6
6
  const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
7
7
  /**
@@ -75,5 +75,4 @@ const enumerate = (root, globs, options) => Effect.gen(function* () {
75
75
  return results;
76
76
  });
77
77
 
78
- //#endregion
79
78
  export { enumerate };
@@ -1,6 +1,6 @@
1
1
  import { isIdentifierChar, wordEndingAt } from "./sourceText.js";
2
2
 
3
- //#region src/internal/importPosition.ts
3
+ // src/internal/importPosition.ts
4
4
  const SPACE = /\s/;
5
5
  /**
6
6
  * Keywords that place the scan in value code: the first one a backward walk
@@ -638,5 +638,4 @@ const isTypePositionImport = (code, open) => {
638
638
  return isTypeContext(code, j);
639
639
  };
640
640
 
641
- //#endregion
642
641
  export { isTypePositionImport };
@@ -1,4 +1,4 @@
1
- //#region src/internal/importerVersions.ts
1
+ // src/internal/importerVersions.ts
2
2
  /**
3
3
  * Strip pnpm's peer-disambiguation suffix from a recorded importer version.
4
4
  *
@@ -84,5 +84,4 @@ const unanimousVersionOf = (index, dependency) => {
84
84
  return agreed;
85
85
  };
86
86
 
87
- //#endregion
88
87
  export { importerVersionsOf, unanimousVersionOf };
@@ -1,6 +1,6 @@
1
1
  import { Effect } from "effect";
2
2
 
3
- //#region src/internal/layerRoot.ts
3
+ // src/internal/layerRoot.ts
4
4
  /**
5
5
  * Resolve the workspace root a layer's options name. `Effect.suspend` so the
6
6
  * ambient `process.cwd()` is read at first use, not at layer construction.
@@ -10,5 +10,4 @@ const findLayerRoot = (roots, options) => Effect.suspend(() => {
10
10
  return roots.find(options?.cwd ?? process.cwd(), stopAt === void 0 ? void 0 : { stopAt });
11
11
  });
12
12
 
13
- //#endregion
14
13
  export { findLayerRoot };
@@ -1,4 +1,4 @@
1
- //#region src/internal/limits.ts
1
+ // src/internal/limits.ts
2
2
  /**
3
3
  * Hard ceiling on directories the enumerator will visit for one pattern set.
4
4
  * Guards the pathological case a depth cap alone does not: a wide, shallow
@@ -16,5 +16,4 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
16
16
  */
17
17
  const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
18
18
 
19
- //#endregion
20
19
  export { MAX_ENUMERATION_ENTRIES, PRUNED_DIRECTORIES };
@@ -1,7 +1,7 @@
1
1
  import { RUNTIME_DEPENDENCY_FIELDS } from "./dependencyFields.js";
2
2
  import { Predicate, Result } from "effect";
3
3
 
4
- //#region src/internal/packedInstallPlan.ts
4
+ // src/internal/packedInstallPlan.ts
5
5
  /** Variables that carry the PARENT run's context into a child package manager. */
6
6
  const TRAPS = /* @__PURE__ */ new Set([
7
7
  "CI",
@@ -248,5 +248,4 @@ const fileOverridesOf = (document) => {
248
248
  /** An `overrides` value without the `file:` prefix a caller may copy from a workspace file. */
249
249
  const overridePath = (spec) => spec.startsWith("file:") ? spec.slice(5) : spec;
250
250
 
251
- //#endregion
252
251
  export { binConflict, binTargetOf, closureOf, consumerFiles, fileOverridesOf, installArgs, overridePath, readPackedManifest, scrubEnv, versionOf };
@@ -1,7 +1,7 @@
1
1
  import { Effect, FileSystem, Path } from "effect";
2
2
  import { Yaml } from "@effected/yaml";
3
3
 
4
- //#region src/internal/patterns.ts
4
+ // src/internal/patterns.ts
5
5
  /** The string entries of `value` when it is an array, else `undefined`. */
6
6
  const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
7
7
  /** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
@@ -59,5 +59,4 @@ const readPatterns = (root) => Effect.gen(function* () {
59
59
  return manifestPatternsOf(manifest);
60
60
  });
61
61
 
62
- //#endregion
63
62
  export { manifestPatternsOf, pnpmPatternsOf, readPatterns, stringsOf };
@@ -1,6 +1,6 @@
1
1
  import { ReleaseAgeGate } from "@effected/npm";
2
2
 
3
- //#region src/internal/peerPatterns.ts
3
+ // src/internal/peerPatterns.ts
4
4
  /** One pattern (negation stripped) as a predicate, on the shared single-pattern grammar. */
5
5
  const matcherFromPattern = (pattern) => (name) => ReleaseAgeGate.matchesExclude(name, [pattern]);
6
6
  const isNegation = (pattern) => pattern.startsWith("!");
@@ -31,5 +31,4 @@ const peerNameMatcher = (patterns) => {
31
31
  };
32
32
  };
33
33
 
34
- //#endregion
35
34
  export { peerNameMatcher };
package/internal/roots.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/internal/roots.ts
1
+ // src/internal/roots.ts
2
2
  const indexInstances = (lockfile) => {
3
3
  const byId = new Map(lockfile.packages.map((pkg) => [pkg.instanceId, pkg]));
4
4
  const workspaceByPath = /* @__PURE__ */ new Map();
@@ -39,5 +39,4 @@ const rootInstances = (lockfile, importerPath, index) => {
39
39
  };
40
40
  };
41
41
 
42
- //#endregion
43
42
  export { indexInstances, rootInstances };
@@ -1,4 +1,4 @@
1
- //#region src/internal/sourceText.ts
1
+ // src/internal/sourceText.ts
2
2
  const IDENTIFIER = /[\p{ID_Continue}$\u200c\u200d]/u;
3
3
  const SPACE = /\s/;
4
4
  const FLAG = /[a-z]/i;
@@ -355,5 +355,4 @@ const locate = (text) => {
355
355
  };
356
356
  };
357
357
 
358
- //#endregion
359
358
  export { isIdentifierChar, lex, locate, references, specifierLiterals, wordEndingAt };
@@ -1,6 +1,6 @@
1
1
  import { Effect, FileSystem, Option, Path } from "effect";
2
2
 
3
- //#region src/internal/sourceWalk.ts
3
+ // src/internal/sourceWalk.ts
4
4
  /** The file extensions a walk reads when the caller names none. */
5
5
  const DEFAULT_EXTENSIONS = [
6
6
  ".ts",
@@ -54,5 +54,4 @@ const walkSources = Effect.fn("walkSources")(function* (options) {
54
54
  return found;
55
55
  });
56
56
 
57
- //#endregion
58
57
  export { DECLARATION, DEFAULT_EXTENSIONS, walkSources };
@@ -1,6 +1,6 @@
1
1
  import { MAX_ENUMERATION_ENTRIES, PRUNED_DIRECTORIES } from "./limits.js";
2
2
 
3
- //#region src/internal/traverse.ts
3
+ // src/internal/traverse.ts
4
4
  /** Directory names never descended into. */
5
5
  const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
6
6
  /** Join root-relative POSIX segments; `""` is the root itself. */
@@ -90,5 +90,4 @@ var Traversal = class {
90
90
  }
91
91
  };
92
92
 
93
- //#endregion
94
93
  export { Traversal, badMaxDepthMessage, isPruned, isValidMaxDepth, joinRelative };
@@ -2,7 +2,7 @@ import { stringsOf } from "./patterns.js";
2
2
  import { NoPeerDependencyRules } from "../ConfigDependencyHooks.js";
3
3
  import { Predicate } from "effect";
4
4
 
5
- //#region src/internal/workspaceYaml.ts
5
+ // src/internal/workspaceYaml.ts
6
6
  /** The `configDependencies` map (name → version+integrity) of a parsed pnpm-workspace document. */
7
7
  const configDependenciesOf = (document) => {
8
8
  if (!Predicate.isObject(document) || !Predicate.isObject(document.configDependencies)) return {};
@@ -40,5 +40,4 @@ const inlinePeerDependencyRules = (document) => {
40
40
  };
41
41
  };
42
42
 
43
- //#endregion
44
43
  export { configDependenciesOf, inlinePeerDependencyRules };
package/node-sync.d.ts CHANGED
@@ -3,7 +3,6 @@ import "effect";
3
3
  import "@effected/glob";
4
4
  import "@effected/lockfiles";
5
5
  import "@effected/package-json";
6
- //#region src/WorkspacesSync.d.ts
7
6
  /**
8
7
  * The synchronous file operations the sync entry points need, supplied by the
9
8
  * consumer. Node's built-ins satisfy it directly:
@@ -132,8 +131,6 @@ interface WorkspacesSyncOptions {
132
131
  /** The synchronous path implementation (Node: the `node:path` module itself). */
133
132
  readonly path: SyncPath;
134
133
  }
135
- //#endregion
136
- //#region src/node-sync.d.ts
137
134
  /**
138
135
  * `SyncFileSystem` over `node:fs`.
139
136
  *
@@ -163,6 +160,5 @@ export declare const nodePath: SyncPath;
163
160
  * @public
164
161
  */
165
162
  export declare const nodeSyncOps: WorkspacesSyncOptions;
166
- //#endregion
167
163
  export type { SyncDirectoryEntry, SyncFileSystem, SyncPath, WorkspacesSyncOptions };
168
164
  //# sourceMappingURL=node-sync.d.ts.map
package/node-sync.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as path from "node:path";
2
2
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
3
3
 
4
- //#region src/node-sync.ts
4
+ // src/node-sync.ts
5
5
  /**
6
6
  * The Node.js binding for the sync entry points — ready-made `SyncFileSystem`
7
7
  * and `SyncPath` operations over `node:fs` / `node:path`, so adopting
@@ -70,5 +70,4 @@ const nodeSyncOps = {
70
70
  path: nodePath
71
71
  };
72
72
 
73
- //#endregion
74
73
  export { nodeFileSystem, nodePath, nodeSyncOps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/workspaces",
3
- "version": "0.34.0",
3
+ "version": "0.36.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": [
@@ -51,16 +51,16 @@
51
51
  "./package.json": "./package.json"
52
52
  },
53
53
  "dependencies": {
54
- "@effected/commands": "^0.13.0",
55
- "@effected/git": "^0.22.0",
56
- "@effected/glob": "^0.12.0",
57
- "@effected/jsonc": "^0.17.0",
58
- "@effected/lockfiles": "^0.17.0",
59
- "@effected/npm": "^0.22.0",
60
- "@effected/package-json": "^0.22.0",
61
- "@effected/semver": "^0.13.0",
62
- "@effected/walker": "^0.17.0",
63
- "@effected/yaml": "^0.21.0",
54
+ "@effected/commands": "^0.15.0",
55
+ "@effected/git": "^0.24.0",
56
+ "@effected/glob": "^0.14.0",
57
+ "@effected/jsonc": "^0.19.0",
58
+ "@effected/lockfiles": "^0.19.0",
59
+ "@effected/npm": "^0.24.0",
60
+ "@effected/package-json": "^0.24.0",
61
+ "@effected/semver": "^0.15.0",
62
+ "@effected/walker": "^0.19.0",
63
+ "@effected/yaml": "^0.23.0",
64
64
  "@pnpm/catalogs.config": "^1100.0.5",
65
65
  "@pnpm/catalogs.protocol-parser": "^1100.0.0",
66
66
  "@pnpm/catalogs.resolver": "^1100.0.0",
package/testing.d.ts CHANGED
@@ -5,7 +5,6 @@ import { WorkspaceManifest } from "@effected/lockfiles";
5
5
  import { Package } from "@effected/package-json";
6
6
  import { CommandOutput } from "@effected/commands";
7
7
  import { ChildProcess, ChildProcessSpawner } from "effect/process";
8
- //#region src/WorkspacePackage.d.ts
9
8
  declare const PublishConfig_base: Schema.Class<PublishConfig, Schema.Struct<{
10
9
  /** Scoped-package visibility. Its presence overrides `private`. */
11
10
  readonly access: Schema.optionalKey<Schema.Literals<readonly ["public", "restricted"]>>;
@@ -241,8 +240,6 @@ export declare class WorkspacePackage extends WorkspacePackage_base {
241
240
  /** Instance form of `WorkspacePackage.manifest`. */
242
241
  manifest(): Effect.Effect<Package, WorkspaceManifestError, FileSystem.FileSystem>;
243
242
  }
244
- //#endregion
245
- //#region src/WorkspaceRoot.d.ts
246
243
  /**
247
244
  * Options for {@link WorkspaceRoot}'s `find`.
248
245
  *
@@ -420,8 +417,6 @@ export declare class WorkspaceRoot extends WorkspaceRoot_base {
420
417
  */
421
418
  static readonly layerTest: (root: string) => Layer.Layer<WorkspaceRoot>;
422
419
  }
423
- //#endregion
424
- //#region src/WorkspaceDiscovery.d.ts
425
420
  declare const WorkspaceDiscoveryError_base: Schema.Class<WorkspaceDiscoveryError, Schema.TaggedStruct<"WorkspaceDiscoveryError", {
426
421
  /** The workspace root discovery was running against. */
427
422
  readonly root: Schema.String;
@@ -787,8 +782,6 @@ export declare class WorkspaceDiscovery extends WorkspaceDiscovery_base {
787
782
  */
788
783
  static readonly workspaceResolver: Layer.Layer<WorkspaceResolver, never, WorkspaceDiscovery>;
789
784
  }
790
- //#endregion
791
- //#region src/ImportGraph.d.ts
792
785
  declare const NoEntriesError_base: Schema.Class<NoEntriesError, Schema.TaggedStruct<"NoEntriesError", {
793
786
  /** The root the walk would have reported against. */
794
787
  readonly root: Schema.String;
@@ -1100,8 +1093,6 @@ export declare class ImportGraph {
1100
1093
  */
1101
1094
  static readonly undeclared: (options?: UndeclaredOptions | undefined) => Effect.Effect<UndeclaredScan, import("@effected/glob").GlobPatternError | import("effect/PlatformError").PlatformError | WorkspaceDiscoveryFailure, FileSystem.FileSystem | Path.Path | WorkspaceDiscovery>;
1102
1095
  }
1103
- //#endregion
1104
- //#region src/LayerPolicy.d.ts
1105
1096
  declare const LayerPolicyError_base: Schema.Class<LayerPolicyError, Schema.TaggedStruct<"LayerPolicyError", {
1106
1097
  /** `read`: the file could not be read. `json`: it is not JSON. `decode`: it is not a `LayerPolicy`. */
1107
1098
  readonly reason: Schema.Literals<readonly ["read", "json", "decode"]>;
@@ -1186,8 +1177,6 @@ export declare class LayerPolicy extends LayerPolicy_base {
1186
1177
  readonly allowKeys?: ReadonlyArray<string> | undefined;
1187
1178
  } | undefined) => Effect.Effect<LayerPolicy, LayerPolicyError, FileSystem.FileSystem>;
1188
1179
  }
1189
- //#endregion
1190
- //#region src/PackageManagerName.d.ts
1191
1180
  /**
1192
1181
  * The four package managers this package understands.
1193
1182
  *
@@ -1200,8 +1189,6 @@ export declare const PackageManagerName: Schema.Literals<readonly ["npm", "pnpm"
1200
1189
  * @public
1201
1190
  */
1202
1191
  export type PackageManagerName = typeof PackageManagerName.Type;
1203
- //#endregion
1204
- //#region src/PackedInstall.d.ts
1205
1192
  /**
1206
1193
  * Where each closure package is packed from.
1207
1194
  *
@@ -1937,8 +1924,6 @@ export declare class PackedInstall {
1937
1924
  /** Pack, then install under every available manager. */
1938
1925
  static readonly run: (options: PackedInstallOptions) => Effect.Effect<PackedInstallResult, PackedInstallError, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | import("effect/Scope").Scope | WorkspaceDiscovery>;
1939
1926
  }
1940
- //#endregion
1941
- //#region src/SourceBoundary.d.ts
1942
1927
  /**
1943
1928
  * One rule a source file must keep.
1944
1929
  *
@@ -2210,8 +2195,6 @@ export declare class SourceBoundary {
2210
2195
  /** The names of shipped fixtures the scanner gets wrong; `[]` means it still flags and spares what it must. */
2211
2196
  static readonly verifyFixtures: () => ReadonlyArray<string>;
2212
2197
  }
2213
- //#endregion
2214
- //#region src/WorkspaceLayering.d.ts
2215
2198
  declare const LayerEdge_base: Schema.Class<LayerEdge, Schema.Struct<{
2216
2199
  /** The dependent package. */
2217
2200
  readonly from: Schema.String;
@@ -2305,6 +2288,5 @@ export declare class WorkspaceLayering {
2305
2288
  /** Discover the workspace and check it against `policy`. */
2306
2289
  static readonly checkWorkspace: (policy: LayerPolicy) => Effect.Effect<LayeringReport, WorkspaceDiscoveryFailure, WorkspaceDiscovery>;
2307
2290
  }
2308
- //#endregion
2309
2291
  export type { BinCommandOptions, BinProvenance, BoundaryFixture, BoundaryRule, DependencyDiff, FindWorkspaceRootOptions, LayeringGraph, OffenceRule, PackSource, PackedInstallBudget, PackedInstallClosureOptions, PackedInstallGate, PackedInstallOptions, PackedInstallPreflight, PackedInstallPreflightOptions, ReachabilityOptions, ReferenceOptions, RunBinOptions, ScanOptions, UndeclaredOptions, WorkspaceDiscoveryFailure, WorkspaceDiscoveryOptions, WorkspaceDiscoveryShape, WorkspaceLookupFailure, WorkspaceRootShape };
2310
2292
  //# sourceMappingURL=testing.d.ts.map