@savvy-web/silk 2.4.1 → 2.4.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/changesets-changelog.cjs +153 -30
- package/changesets-changelog.d.cts +8 -5
- package/changesets-changelog.d.ts +8 -5
- package/changesets-changelog.js +155 -31
- package/changesets-markdownlint.cjs +153 -30
- package/changesets-markdownlint.d.cts +8 -5
- package/changesets-markdownlint.d.ts +8 -5
- package/changesets-markdownlint.js +155 -31
- package/package.json +4 -4
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -0
|
@@ -405,7 +405,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
405
405
|
return s.slice(0, end);
|
|
406
406
|
};
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
408
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/CatalogAssemblyError.js
|
|
409
409
|
/**
|
|
410
410
|
* Base constant for {@link CatalogAssemblyError}.
|
|
411
411
|
*
|
|
@@ -432,7 +432,7 @@ var CatalogAssemblyError = class extends CatalogAssemblyErrorBase {
|
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
434
|
//#endregion
|
|
435
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
435
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/CatalogResolutionError.js
|
|
436
436
|
/**
|
|
437
437
|
* Base constant for {@link CatalogResolutionError}.
|
|
438
438
|
*
|
|
@@ -458,7 +458,7 @@ var CatalogResolutionError = class extends CatalogResolutionErrorBase {
|
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
460
|
//#endregion
|
|
461
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
461
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/GitReadError.js
|
|
462
462
|
/**
|
|
463
463
|
* Base constant for {@link GitReadError}.
|
|
464
464
|
*
|
|
@@ -483,7 +483,7 @@ var GitReadError = class extends GitReadErrorBase {
|
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
//#endregion
|
|
486
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
486
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/PackageNotFoundError.js
|
|
487
487
|
/**
|
|
488
488
|
* Base constant for {@link PackageNotFoundError}.
|
|
489
489
|
*
|
|
@@ -534,7 +534,7 @@ var PackageNotFoundError = class extends PackageNotFoundErrorBase {
|
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
//#endregion
|
|
537
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
537
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/WorkspaceDiscoveryError.js
|
|
538
538
|
/**
|
|
539
539
|
* Base constant for {@link WorkspaceDiscoveryError}.
|
|
540
540
|
*
|
|
@@ -585,7 +585,7 @@ var WorkspaceDiscoveryError = class extends WorkspaceDiscoveryErrorBase {
|
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
//#endregion
|
|
588
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
588
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/errors/WorkspaceRootNotFoundError.js
|
|
589
589
|
/**
|
|
590
590
|
* Base constant for {@link WorkspaceRootNotFoundError}.
|
|
591
591
|
*
|
|
@@ -635,7 +635,7 @@ var WorkspaceRootNotFoundError = class extends WorkspaceRootNotFoundErrorBase {
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
//#endregion
|
|
638
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
638
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/services/WorkspaceDiscovery.js
|
|
639
639
|
/**
|
|
640
640
|
* Service for discovering workspace packages in a monorepo.
|
|
641
641
|
*
|
|
@@ -685,7 +685,7 @@ var WorkspaceRootNotFoundError = class extends WorkspaceRootNotFoundErrorBase {
|
|
|
685
685
|
*/
|
|
686
686
|
var WorkspaceDiscovery = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/WorkspaceDiscovery")() {};
|
|
687
687
|
//#endregion
|
|
688
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
688
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/services/WorkspaceRoot.js
|
|
689
689
|
/**
|
|
690
690
|
* Service for finding the workspace root directory.
|
|
691
691
|
*
|
|
@@ -6371,7 +6371,7 @@ function parse$3(text, options) {
|
|
|
6371
6371
|
}));
|
|
6372
6372
|
}
|
|
6373
6373
|
//#endregion
|
|
6374
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6374
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/catalog/workspace-manifest.js
|
|
6375
6375
|
/**
|
|
6376
6376
|
* Parse a pnpm-workspace.yaml text into its catalog/config-dependency/packages
|
|
6377
6377
|
* slice. Pure with respect to the filesystem.
|
|
@@ -6439,7 +6439,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
6439
6439
|
if (manifest.catalog != null && manifest.catalogs?.default != null) throw new PnpmError("INVALID_CATALOGS_CONFIGURATION", "The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
6440
6440
|
}
|
|
6441
6441
|
//#endregion
|
|
6442
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6442
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/catalog/assemble.js
|
|
6443
6443
|
/** Merge catalog sources; later sources win per dependency within a catalog. */
|
|
6444
6444
|
function mergeCatalogs(...sources) {
|
|
6445
6445
|
const result = {};
|
|
@@ -6520,7 +6520,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
6520
6520
|
};
|
|
6521
6521
|
}
|
|
6522
6522
|
//#endregion
|
|
6523
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6523
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/catalog/resolve.js
|
|
6524
6524
|
const DEP_FIELDS = [
|
|
6525
6525
|
"dependencies",
|
|
6526
6526
|
"devDependencies",
|
|
@@ -6590,7 +6590,7 @@ function resolveManifest(catalogs, workspaceVersions, manifest) {
|
|
|
6590
6590
|
return out;
|
|
6591
6591
|
}
|
|
6592
6592
|
//#endregion
|
|
6593
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6593
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/schemas/CatalogSet.js
|
|
6594
6594
|
/**
|
|
6595
6595
|
* An immutable, fully-normalized catalog collection with the one
|
|
6596
6596
|
* resolution semantic shared by live and point-in-time resolution.
|
|
@@ -6680,7 +6680,109 @@ var CatalogSet = class CatalogSet extends effect.Schema.Class("CatalogSet")({ en
|
|
|
6680
6680
|
}
|
|
6681
6681
|
};
|
|
6682
6682
|
//#endregion
|
|
6683
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6683
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/catalog/package-json-workspaces.js
|
|
6684
|
+
/**
|
|
6685
|
+
* Reader for the npm/bun `workspaces` field of a root `package.json` — the
|
|
6686
|
+
* package.json counterpart to `workspace-manifest.ts` (which reads pnpm's
|
|
6687
|
+
* `pnpm-workspace.yaml`). Pure with respect to the filesystem.
|
|
6688
|
+
*
|
|
6689
|
+
* @packageDocumentation
|
|
6690
|
+
* @internal
|
|
6691
|
+
*/
|
|
6692
|
+
const CatalogRecordSchema = effect.Schema.Record({
|
|
6693
|
+
key: effect.Schema.String,
|
|
6694
|
+
value: effect.Schema.String
|
|
6695
|
+
}).annotations({ identifier: "CatalogRecord" });
|
|
6696
|
+
const CatalogsRecordSchema = effect.Schema.Record({
|
|
6697
|
+
key: effect.Schema.String,
|
|
6698
|
+
value: CatalogRecordSchema
|
|
6699
|
+
}).annotations({ identifier: "CatalogsRecord" });
|
|
6700
|
+
const PackageJsonWorkspacesArraySchema = effect.Schema.mutable(effect.Schema.Array(effect.Schema.String)).annotations({ identifier: "PackageJsonWorkspacesArray" });
|
|
6701
|
+
const PackageJsonWorkspacesObjectSchema = effect.Schema.Struct({
|
|
6702
|
+
packages: effect.Schema.optional(effect.Schema.Array(effect.Schema.String)),
|
|
6703
|
+
catalog: effect.Schema.optional(CatalogRecordSchema),
|
|
6704
|
+
catalogs: effect.Schema.optional(CatalogsRecordSchema)
|
|
6705
|
+
}).annotations({ identifier: "PackageJsonWorkspacesObject" });
|
|
6706
|
+
/**
|
|
6707
|
+
* The shape npm/bun accept for a root `package.json`'s `workspaces` field:
|
|
6708
|
+
* an array of globs, or an object carrying `packages` and (for bun) `catalog`
|
|
6709
|
+
* / `catalogs`. Any other JSON value (a number, string, boolean, `null`, or
|
|
6710
|
+
* an object with malformed `packages`/`catalog`/`catalogs`) is malformed.
|
|
6711
|
+
*/
|
|
6712
|
+
const WorkspacesFieldSchema = effect.Schema.Union(PackageJsonWorkspacesArraySchema, PackageJsonWorkspacesObjectSchema).annotations({ identifier: "PackageJsonWorkspacesField" });
|
|
6713
|
+
const PackageJsonWithWorkspacesSchema = effect.Schema.Struct({ workspaces: effect.Schema.optionalWith(WorkspacesFieldSchema, { nullable: true }) });
|
|
6714
|
+
/**
|
|
6715
|
+
* Parse the `workspaces` field out of a root `package.json`'s text.
|
|
6716
|
+
*
|
|
6717
|
+
* @param content - Raw `package.json` text.
|
|
6718
|
+
* @returns An Effect yielding the workspaces slice; all fields are `undefined`
|
|
6719
|
+
* when the manifest has no `workspaces` field, or when `workspaces` is
|
|
6720
|
+
* explicitly `null` (both are legitimate, common shapes — not every root
|
|
6721
|
+
* `package.json` declares workspaces, and `null` is a plausible output of
|
|
6722
|
+
* tooling that serializes a stripped field). Fails with
|
|
6723
|
+
* {@link CatalogAssemblyError} when the text is not valid JSON, or when a
|
|
6724
|
+
* present, non-null `workspaces` field is not a valid npm/bun shape (not an
|
|
6725
|
+
* array of strings and not an object with valid
|
|
6726
|
+
* `packages`/`catalog`/`catalogs`) — an unreadable manifest must never be
|
|
6727
|
+
* silently treated as an empty one, since that would make every dependency
|
|
6728
|
+
* in the workspace look "added".
|
|
6729
|
+
*
|
|
6730
|
+
* @public
|
|
6731
|
+
*/
|
|
6732
|
+
const parsePackageJsonWorkspaces = (content) => effect.Effect.gen(function* () {
|
|
6733
|
+
const parsed = yield* effect.Effect.try({
|
|
6734
|
+
try: () => JSON.parse(content),
|
|
6735
|
+
catch: (error) => new CatalogAssemblyError({
|
|
6736
|
+
source: "manifest",
|
|
6737
|
+
reason: `invalid json: ${String(error)}`
|
|
6738
|
+
})
|
|
6739
|
+
});
|
|
6740
|
+
const ws = (yield* effect.Schema.decodeUnknown(PackageJsonWithWorkspacesSchema)(parsed).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
6741
|
+
source: "manifest",
|
|
6742
|
+
reason: `malformed workspaces field: ${effect.ParseResult.TreeFormatter.formatErrorSync(error)}`
|
|
6743
|
+
})))).workspaces;
|
|
6744
|
+
if (ws === void 0) return {};
|
|
6745
|
+
if (Array.isArray(ws)) return { packages: ws };
|
|
6746
|
+
return {
|
|
6747
|
+
packages: ws.packages,
|
|
6748
|
+
catalog: ws.catalog,
|
|
6749
|
+
catalogs: ws.catalogs
|
|
6750
|
+
};
|
|
6751
|
+
});
|
|
6752
|
+
/**
|
|
6753
|
+
* Build a {@link CatalogSet} from a root `package.json`'s `workspaces` field.
|
|
6754
|
+
*
|
|
6755
|
+
* @remarks
|
|
6756
|
+
* `workspaces.catalog` becomes the `"default"` catalog; every key of
|
|
6757
|
+
* `workspaces.catalogs` becomes a catalog of that name. This mirrors how
|
|
6758
|
+
* {@link CatalogSet.fromWorkspaceYaml} treats pnpm's `catalog:` / `catalogs:`.
|
|
6759
|
+
*
|
|
6760
|
+
* Declaring the default catalog twice — once as `workspaces.catalog` and
|
|
6761
|
+
* again as `workspaces.catalogs.default` — is rejected with
|
|
6762
|
+
* {@link CatalogAssemblyError} rather than silently resolved (pnpm itself
|
|
6763
|
+
* rejects the equivalent duplication in `pnpm-workspace.yaml`). Presence is
|
|
6764
|
+
* checked structurally (`!== undefined` / `Object.hasOwn`), not by
|
|
6765
|
+
* truthiness, so an explicitly-declared empty catalog (`catalog: {}` or
|
|
6766
|
+
* `catalogs: { default: {} }`) still counts as a declaration.
|
|
6767
|
+
*
|
|
6768
|
+
* @param content - Raw `package.json` text.
|
|
6769
|
+
*
|
|
6770
|
+
* @public
|
|
6771
|
+
*/
|
|
6772
|
+
const catalogSetFromPackageJson = (content) => parsePackageJsonWorkspaces(content).pipe(effect.Effect.flatMap((ws) => {
|
|
6773
|
+
const hasCatalog = ws.catalog !== void 0;
|
|
6774
|
+
const hasCatalogsDefault = ws.catalogs !== void 0 && Object.hasOwn(ws.catalogs, "default");
|
|
6775
|
+
if (hasCatalog && hasCatalogsDefault) return effect.Effect.fail(new CatalogAssemblyError({
|
|
6776
|
+
source: "manifest",
|
|
6777
|
+
reason: "the default catalog is defined twice: once as `workspaces.catalog` and once as `workspaces.catalogs.default` — remove one"
|
|
6778
|
+
}));
|
|
6779
|
+
return effect.Effect.succeed(CatalogSet.fromCatalogs({
|
|
6780
|
+
...hasCatalog ? { default: ws.catalog } : {},
|
|
6781
|
+
...ws.catalogs ?? {}
|
|
6782
|
+
}));
|
|
6783
|
+
}));
|
|
6784
|
+
//#endregion
|
|
6785
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/point-in-time/worktree-catalogs.js
|
|
6684
6786
|
/**
|
|
6685
6787
|
* The ONE code path that reads the working tree's catalog sources
|
|
6686
6788
|
* (`pnpm-workspace.yaml` + `pnpm-lock.yaml`). Consumed by
|
|
@@ -6699,6 +6801,20 @@ var CatalogSet = class CatalogSet extends effect.Schema.Class("CatalogSet")({ en
|
|
|
6699
6801
|
*/
|
|
6700
6802
|
const lockfileCatalogsFromText = (text) => parse$3(text).pipe(effect.Effect.map((parsed) => CatalogSet.fromLockfileCatalogs(parsed?.catalogs)), effect.Effect.orElseSucceed(() => CatalogSet.empty()));
|
|
6701
6803
|
/**
|
|
6804
|
+
* Read catalogs from the root `package.json` `workspaces` field. Missing or
|
|
6805
|
+
* unreadable manifest yields an empty set — a repo with no catalogs is normal.
|
|
6806
|
+
*
|
|
6807
|
+
* @internal
|
|
6808
|
+
*/
|
|
6809
|
+
const readPackageJsonCatalogs = (fs, path, root) => effect.Effect.gen(function* () {
|
|
6810
|
+
const pkgPath = path.join(root, "package.json");
|
|
6811
|
+
if (!(yield* fs.exists(pkgPath).pipe(effect.Effect.orElseSucceed(() => false)))) return CatalogSet.empty();
|
|
6812
|
+
return yield* catalogSetFromPackageJson(yield* fs.readFileString(pkgPath).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
6813
|
+
source: "manifest",
|
|
6814
|
+
reason: `failed to read ${pkgPath}: ${String(error)}`
|
|
6815
|
+
}))));
|
|
6816
|
+
});
|
|
6817
|
+
/**
|
|
6702
6818
|
* Read the working tree's catalog state at `root`.
|
|
6703
6819
|
*
|
|
6704
6820
|
* A missing `pnpm-lock.yaml` yields empty lockfile catalogs; any OTHER read
|
|
@@ -6710,11 +6826,17 @@ const lockfileCatalogsFromText = (text) => parse$3(text).pipe(effect.Effect.map(
|
|
|
6710
6826
|
const readWorktreeCatalogState = (root) => effect.Effect.gen(function* () {
|
|
6711
6827
|
const fs = yield* _effect_platform.FileSystem.FileSystem;
|
|
6712
6828
|
const path = yield* _effect_platform.Path.Path;
|
|
6713
|
-
const
|
|
6714
|
-
const
|
|
6829
|
+
const manifestPath = path.join(root, "pnpm-workspace.yaml");
|
|
6830
|
+
const hasPnpmManifest = yield* fs.exists(manifestPath).pipe(effect.Effect.orElseSucceed(() => false));
|
|
6831
|
+
const manifest = hasPnpmManifest ? yield* readWorkspaceManifest(root) : {
|
|
6832
|
+
catalog: void 0,
|
|
6833
|
+
catalogs: void 0,
|
|
6834
|
+
configDependencies: void 0
|
|
6835
|
+
};
|
|
6836
|
+
const inline = hasPnpmManifest ? CatalogSet.fromCatalogs(inlineCatalogs({
|
|
6715
6837
|
catalog: manifest.catalog,
|
|
6716
6838
|
catalogs: manifest.catalogs
|
|
6717
|
-
}));
|
|
6839
|
+
})) : yield* readPackageJsonCatalogs(fs, path, root);
|
|
6718
6840
|
const lockPath = path.join(root, "pnpm-lock.yaml");
|
|
6719
6841
|
const lockText = yield* fs.readFileString(lockPath).pipe(effect.Effect.catchAll((error) => error._tag === "SystemError" && error.reason === "NotFound" ? effect.Effect.succeed(null) : effect.Effect.fail(new CatalogAssemblyError({
|
|
6720
6842
|
source: "lockfile",
|
|
@@ -8225,7 +8347,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
8225
8347
|
minimatch.escape = escape;
|
|
8226
8348
|
minimatch.unescape = unescape;
|
|
8227
8349
|
//#endregion
|
|
8228
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
8350
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/schemas/core.js
|
|
8229
8351
|
/**
|
|
8230
8352
|
* Schema for supported package manager identifiers.
|
|
8231
8353
|
*
|
|
@@ -9766,7 +9888,7 @@ function modifyImpl(text, path, value, formattingOptions) {
|
|
|
9766
9888
|
return [];
|
|
9767
9889
|
}
|
|
9768
9890
|
//#endregion
|
|
9769
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9891
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/schemas/WorkspaceStateSnapshot.js
|
|
9770
9892
|
const DepRecord = effect.Schema.optionalWith(effect.Schema.Record({
|
|
9771
9893
|
key: effect.Schema.String,
|
|
9772
9894
|
value: effect.Schema.String
|
|
@@ -9835,7 +9957,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
9835
9957
|
}
|
|
9836
9958
|
};
|
|
9837
9959
|
//#endregion
|
|
9838
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9960
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/services/PointInTimeWorkspace.js
|
|
9839
9961
|
/**
|
|
9840
9962
|
* Service for reading a monorepo's workspace state at a specific moment: any
|
|
9841
9963
|
* git ref (via `git show`/`git ls-tree`, without checking the ref out) or the
|
|
@@ -9862,7 +9984,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
9862
9984
|
*/
|
|
9863
9985
|
var PointInTimeWorkspace = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/PointInTimeWorkspace")() {};
|
|
9864
9986
|
//#endregion
|
|
9865
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9987
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/discovery/glob-core.js
|
|
9866
9988
|
const normalize$1 = (pattern) => pattern.replace(/\/\*\*$/, "/*");
|
|
9867
9989
|
const toRegex = (glob) => new RegExp(`^${glob.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]")}$`);
|
|
9868
9990
|
/**
|
|
@@ -9905,7 +10027,7 @@ const compileWorkspaceGlobs = (patterns) => {
|
|
|
9905
10027
|
};
|
|
9906
10028
|
};
|
|
9907
10029
|
//#endregion
|
|
9908
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10030
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/point-in-time/git.js
|
|
9909
10031
|
/**
|
|
9910
10032
|
* Stderr shapes that mean "the path is not present at this ref" rather than
|
|
9911
10033
|
* "the git command failed."
|
|
@@ -9997,7 +10119,7 @@ const makeGitReader = (executor, options) => {
|
|
|
9997
10119
|
};
|
|
9998
10120
|
};
|
|
9999
10121
|
//#endregion
|
|
10000
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10122
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/PointInTimeWorkspaceLive.js
|
|
10001
10123
|
/**
|
|
10002
10124
|
* Live layer for the {@link PointInTimeWorkspace} service.
|
|
10003
10125
|
*
|
|
@@ -10072,16 +10194,17 @@ const PointInTimeWorkspaceLive = effect.Layer.effect(PointInTimeWorkspace, effec
|
|
|
10072
10194
|
const resolveRoot = (cwd) => workspaceRoot.find(cwd ?? process.cwd());
|
|
10073
10195
|
const readAtRef = (root, ref) => effect.Effect.gen(function* () {
|
|
10074
10196
|
const wsYaml = yield* reader.show(root, ref, "pnpm-workspace.yaml");
|
|
10075
|
-
const
|
|
10197
|
+
const rootPkgJson = effect.Option.isSome(wsYaml) ? effect.Option.none() : yield* reader.show(root, ref, "package.json");
|
|
10198
|
+
const manifest = effect.Option.isSome(wsYaml) ? yield* workspaceManifestFromYaml(wsYaml.value) : effect.Option.isSome(rootPkgJson) ? yield* parsePackageJsonWorkspaces(rootPkgJson.value) : {
|
|
10076
10199
|
catalog: void 0,
|
|
10077
10200
|
catalogs: void 0,
|
|
10078
10201
|
configDependencies: void 0,
|
|
10079
10202
|
packages: void 0
|
|
10080
10203
|
};
|
|
10081
|
-
const inline = CatalogSet.fromCatalogs(inlineCatalogs({
|
|
10204
|
+
const inline = effect.Option.isSome(wsYaml) ? CatalogSet.fromCatalogs(inlineCatalogs({
|
|
10082
10205
|
catalog: manifest.catalog,
|
|
10083
10206
|
catalogs: manifest.catalogs
|
|
10084
|
-
}));
|
|
10207
|
+
})) : effect.Option.isSome(rootPkgJson) ? yield* catalogSetFromPackageJson(rootPkgJson.value) : CatalogSet.empty();
|
|
10085
10208
|
const lockText = yield* reader.show(root, ref, "pnpm-lock.yaml");
|
|
10086
10209
|
const lockCatalogs = yield* lockfileCatalogsAtRef(lockText);
|
|
10087
10210
|
const compiled = compileWorkspaceGlobs(manifest.packages ?? []);
|
|
@@ -10139,7 +10262,7 @@ const PointInTimeWorkspaceLive = effect.Layer.effect(PointInTimeWorkspace, effec
|
|
|
10139
10262
|
});
|
|
10140
10263
|
}));
|
|
10141
10264
|
//#endregion
|
|
10142
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10265
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/schemas/publish.js
|
|
10143
10266
|
/**
|
|
10144
10267
|
* Schema for package publish targets.
|
|
10145
10268
|
*
|
|
@@ -10182,7 +10305,7 @@ var PublishTarget = class extends effect.Schema.Class("PublishTarget")({
|
|
|
10182
10305
|
provenance: effect.Schema.optionalWith(effect.Schema.Boolean, { default: () => false })
|
|
10183
10306
|
}) {};
|
|
10184
10307
|
//#endregion
|
|
10185
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10308
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/services/PublishabilityDetector.js
|
|
10186
10309
|
/**
|
|
10187
10310
|
* Service for detecting whether a workspace package is publishable and
|
|
10188
10311
|
* identifying its publish targets (npm, GitHub Packages, etc.).
|
|
@@ -10244,7 +10367,7 @@ var PublishTarget = class extends effect.Schema.Class("PublishTarget")({
|
|
|
10244
10367
|
*/
|
|
10245
10368
|
var PublishabilityDetector = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/PublishabilityDetector")() {};
|
|
10246
10369
|
//#endregion
|
|
10247
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10370
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/PublishabilityDetectorLive.js
|
|
10248
10371
|
/**
|
|
10249
10372
|
* Default live implementation of the {@link PublishabilityDetector} service.
|
|
10250
10373
|
*
|
|
@@ -10316,7 +10439,7 @@ const PublishabilityDetectorLive = effect.Layer.succeed(PublishabilityDetector,
|
|
|
10316
10439
|
return targets;
|
|
10317
10440
|
}).pipe(effect.Effect.withSpan("PublishabilityDetector.detect", { attributes: { "workspace.package": pkg.name } })) });
|
|
10318
10441
|
//#endregion
|
|
10319
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10442
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/WorkspaceDiscoveryLive.js
|
|
10320
10443
|
/**
|
|
10321
10444
|
* Live implementation of the {@link WorkspaceDiscovery} service.
|
|
10322
10445
|
*
|
|
@@ -10603,7 +10726,7 @@ const WorkspaceDiscoveryLive = effect.Layer.effect(WorkspaceDiscovery, effect.Ef
|
|
|
10603
10726
|
};
|
|
10604
10727
|
}));
|
|
10605
10728
|
//#endregion
|
|
10606
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10729
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/layers/WorkspaceRootLive.js
|
|
10607
10730
|
/**
|
|
10608
10731
|
* Live implementation of the {@link WorkspaceRoot} service.
|
|
10609
10732
|
*
|
|
@@ -3326,7 +3326,7 @@ interface Catalog {
|
|
|
3326
3326
|
readonly [dependencyName: string]: string | undefined;
|
|
3327
3327
|
}
|
|
3328
3328
|
//#endregion
|
|
3329
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
3329
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/index.d.ts
|
|
3330
3330
|
//#region src/errors/CatalogAssemblyError.d.ts
|
|
3331
3331
|
/**
|
|
3332
3332
|
* Base constant for {@link CatalogAssemblyError}.
|
|
@@ -3379,8 +3379,11 @@ declare const GitReadErrorBase: new <A extends Record<string, any> = {}>(args: i
|
|
|
3379
3379
|
* @public
|
|
3380
3380
|
*/
|
|
3381
3381
|
declare class GitReadError extends GitReadErrorBase<{
|
|
3382
|
-
/** The git command that failed, including arguments. */
|
|
3383
|
-
readonly
|
|
3382
|
+
/** The git command that failed, including arguments. */
|
|
3383
|
+
readonly command: string;
|
|
3384
|
+
/** Working directory in which the command was invoked. */
|
|
3385
|
+
readonly cwd: string;
|
|
3386
|
+
/** Human-readable failure reason — typically captured stderr. */
|
|
3384
3387
|
readonly reason: string;
|
|
3385
3388
|
}> {
|
|
3386
3389
|
get message(): string;
|
|
@@ -9507,7 +9510,7 @@ interface TokenTypeMap {
|
|
|
9507
9510
|
chunkString: 'chunkString';
|
|
9508
9511
|
}
|
|
9509
9512
|
//#endregion
|
|
9510
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.
|
|
9513
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
9511
9514
|
/**
|
|
9512
9515
|
* Function to implement rule logic.
|
|
9513
9516
|
*/
|
|
@@ -9780,7 +9783,7 @@ type Rule$2 = {
|
|
|
9780
9783
|
*/
|
|
9781
9784
|
type RuleConfiguration = boolean | any;
|
|
9782
9785
|
//#endregion
|
|
9783
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.
|
|
9786
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/exports.d.mts
|
|
9784
9787
|
type Rule$1 = Rule$2;
|
|
9785
9788
|
//#endregion
|
|
9786
9789
|
//#region src/changesets/markdownlint/rules/content-structure.d.ts
|
|
@@ -3326,7 +3326,7 @@ interface Catalog {
|
|
|
3326
3326
|
readonly [dependencyName: string]: string | undefined;
|
|
3327
3327
|
}
|
|
3328
3328
|
//#endregion
|
|
3329
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
3329
|
+
//#region ../../node_modules/.pnpm/workspaces-effect@2.1.0_@effect+platform@0.96.2_effect@3.21.4__effect@3.21.4/node_modules/workspaces-effect/index.d.ts
|
|
3330
3330
|
//#region src/errors/CatalogAssemblyError.d.ts
|
|
3331
3331
|
/**
|
|
3332
3332
|
* Base constant for {@link CatalogAssemblyError}.
|
|
@@ -3379,8 +3379,11 @@ declare const GitReadErrorBase: new <A extends Record<string, any> = {}>(args: i
|
|
|
3379
3379
|
* @public
|
|
3380
3380
|
*/
|
|
3381
3381
|
declare class GitReadError extends GitReadErrorBase<{
|
|
3382
|
-
/** The git command that failed, including arguments. */
|
|
3383
|
-
readonly
|
|
3382
|
+
/** The git command that failed, including arguments. */
|
|
3383
|
+
readonly command: string;
|
|
3384
|
+
/** Working directory in which the command was invoked. */
|
|
3385
|
+
readonly cwd: string;
|
|
3386
|
+
/** Human-readable failure reason — typically captured stderr. */
|
|
3384
3387
|
readonly reason: string;
|
|
3385
3388
|
}> {
|
|
3386
3389
|
get message(): string;
|
|
@@ -9507,7 +9510,7 @@ interface TokenTypeMap {
|
|
|
9507
9510
|
chunkString: 'chunkString';
|
|
9508
9511
|
}
|
|
9509
9512
|
//#endregion
|
|
9510
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.
|
|
9513
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/markdownlint.d.mts
|
|
9511
9514
|
/**
|
|
9512
9515
|
* Function to implement rule logic.
|
|
9513
9516
|
*/
|
|
@@ -9780,7 +9783,7 @@ type Rule$2 = {
|
|
|
9780
9783
|
*/
|
|
9781
9784
|
type RuleConfiguration = boolean | any;
|
|
9782
9785
|
//#endregion
|
|
9783
|
-
//#region ../../node_modules/.pnpm/markdownlint@0.41.
|
|
9786
|
+
//#region ../../node_modules/.pnpm/markdownlint@0.41.1/node_modules/markdownlint/lib/exports.d.mts
|
|
9784
9787
|
type Rule$1 = Rule$2;
|
|
9785
9788
|
//#endregion
|
|
9786
9789
|
//#region src/changesets/markdownlint/rules/content-structure.d.ts
|