@savvy-web/silk 2.4.1 → 2.4.3
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 +6 -5
- package/tsconfig/node/dist/tsconfig.tsbuildinfo +1 -0
package/changesets-changelog.cjs
CHANGED
|
@@ -401,7 +401,7 @@ const trimTrailingSlashes = (s) => {
|
|
|
401
401
|
return s.slice(0, end);
|
|
402
402
|
};
|
|
403
403
|
//#endregion
|
|
404
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
404
|
+
//#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
|
|
405
405
|
/**
|
|
406
406
|
* Base constant for {@link CatalogAssemblyError}.
|
|
407
407
|
*
|
|
@@ -428,7 +428,7 @@ var CatalogAssemblyError = class extends CatalogAssemblyErrorBase {
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
//#endregion
|
|
431
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
431
|
+
//#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
|
|
432
432
|
/**
|
|
433
433
|
* Base constant for {@link CatalogResolutionError}.
|
|
434
434
|
*
|
|
@@ -454,7 +454,7 @@ var CatalogResolutionError = class extends CatalogResolutionErrorBase {
|
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
//#endregion
|
|
457
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
457
|
+
//#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
|
|
458
458
|
/**
|
|
459
459
|
* Base constant for {@link GitReadError}.
|
|
460
460
|
*
|
|
@@ -479,7 +479,7 @@ var GitReadError = class extends GitReadErrorBase {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
//#endregion
|
|
482
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
482
|
+
//#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
|
|
483
483
|
/**
|
|
484
484
|
* Base constant for {@link PackageNotFoundError}.
|
|
485
485
|
*
|
|
@@ -530,7 +530,7 @@ var PackageNotFoundError = class extends PackageNotFoundErrorBase {
|
|
|
530
530
|
}
|
|
531
531
|
};
|
|
532
532
|
//#endregion
|
|
533
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
533
|
+
//#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
|
|
534
534
|
/**
|
|
535
535
|
* Base constant for {@link WorkspaceDiscoveryError}.
|
|
536
536
|
*
|
|
@@ -581,7 +581,7 @@ var WorkspaceDiscoveryError = class extends WorkspaceDiscoveryErrorBase {
|
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
//#endregion
|
|
584
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
584
|
+
//#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
|
|
585
585
|
/**
|
|
586
586
|
* Base constant for {@link WorkspaceRootNotFoundError}.
|
|
587
587
|
*
|
|
@@ -631,7 +631,7 @@ var WorkspaceRootNotFoundError = class extends WorkspaceRootNotFoundErrorBase {
|
|
|
631
631
|
}
|
|
632
632
|
};
|
|
633
633
|
//#endregion
|
|
634
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
634
|
+
//#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
|
|
635
635
|
/**
|
|
636
636
|
* Service for discovering workspace packages in a monorepo.
|
|
637
637
|
*
|
|
@@ -681,7 +681,7 @@ var WorkspaceRootNotFoundError = class extends WorkspaceRootNotFoundErrorBase {
|
|
|
681
681
|
*/
|
|
682
682
|
var WorkspaceDiscovery = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/WorkspaceDiscovery")() {};
|
|
683
683
|
//#endregion
|
|
684
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
684
|
+
//#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
|
|
685
685
|
/**
|
|
686
686
|
* Service for finding the workspace root directory.
|
|
687
687
|
*
|
|
@@ -6367,7 +6367,7 @@ function parse$3(text, options) {
|
|
|
6367
6367
|
}));
|
|
6368
6368
|
}
|
|
6369
6369
|
//#endregion
|
|
6370
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6370
|
+
//#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
|
|
6371
6371
|
/**
|
|
6372
6372
|
* Parse a pnpm-workspace.yaml text into its catalog/config-dependency/packages
|
|
6373
6373
|
* slice. Pure with respect to the filesystem.
|
|
@@ -6435,7 +6435,7 @@ function checkDefaultCatalogIsDefinedOnce(manifest) {
|
|
|
6435
6435
|
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.");
|
|
6436
6436
|
}
|
|
6437
6437
|
//#endregion
|
|
6438
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6438
|
+
//#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
|
|
6439
6439
|
/** Merge catalog sources; later sources win per dependency within a catalog. */
|
|
6440
6440
|
function mergeCatalogs(...sources) {
|
|
6441
6441
|
const result = {};
|
|
@@ -6516,7 +6516,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
|
|
|
6516
6516
|
};
|
|
6517
6517
|
}
|
|
6518
6518
|
//#endregion
|
|
6519
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6519
|
+
//#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
|
|
6520
6520
|
const DEP_FIELDS = [
|
|
6521
6521
|
"dependencies",
|
|
6522
6522
|
"devDependencies",
|
|
@@ -6586,7 +6586,7 @@ function resolveManifest(catalogs, workspaceVersions, manifest) {
|
|
|
6586
6586
|
return out;
|
|
6587
6587
|
}
|
|
6588
6588
|
//#endregion
|
|
6589
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6589
|
+
//#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
|
|
6590
6590
|
/**
|
|
6591
6591
|
* An immutable, fully-normalized catalog collection with the one
|
|
6592
6592
|
* resolution semantic shared by live and point-in-time resolution.
|
|
@@ -6676,7 +6676,109 @@ var CatalogSet = class CatalogSet extends effect.Schema.Class("CatalogSet")({ en
|
|
|
6676
6676
|
}
|
|
6677
6677
|
};
|
|
6678
6678
|
//#endregion
|
|
6679
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
6679
|
+
//#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
|
|
6680
|
+
/**
|
|
6681
|
+
* Reader for the npm/bun `workspaces` field of a root `package.json` — the
|
|
6682
|
+
* package.json counterpart to `workspace-manifest.ts` (which reads pnpm's
|
|
6683
|
+
* `pnpm-workspace.yaml`). Pure with respect to the filesystem.
|
|
6684
|
+
*
|
|
6685
|
+
* @packageDocumentation
|
|
6686
|
+
* @internal
|
|
6687
|
+
*/
|
|
6688
|
+
const CatalogRecordSchema = effect.Schema.Record({
|
|
6689
|
+
key: effect.Schema.String,
|
|
6690
|
+
value: effect.Schema.String
|
|
6691
|
+
}).annotations({ identifier: "CatalogRecord" });
|
|
6692
|
+
const CatalogsRecordSchema = effect.Schema.Record({
|
|
6693
|
+
key: effect.Schema.String,
|
|
6694
|
+
value: CatalogRecordSchema
|
|
6695
|
+
}).annotations({ identifier: "CatalogsRecord" });
|
|
6696
|
+
const PackageJsonWorkspacesArraySchema = effect.Schema.mutable(effect.Schema.Array(effect.Schema.String)).annotations({ identifier: "PackageJsonWorkspacesArray" });
|
|
6697
|
+
const PackageJsonWorkspacesObjectSchema = effect.Schema.Struct({
|
|
6698
|
+
packages: effect.Schema.optional(effect.Schema.Array(effect.Schema.String)),
|
|
6699
|
+
catalog: effect.Schema.optional(CatalogRecordSchema),
|
|
6700
|
+
catalogs: effect.Schema.optional(CatalogsRecordSchema)
|
|
6701
|
+
}).annotations({ identifier: "PackageJsonWorkspacesObject" });
|
|
6702
|
+
/**
|
|
6703
|
+
* The shape npm/bun accept for a root `package.json`'s `workspaces` field:
|
|
6704
|
+
* an array of globs, or an object carrying `packages` and (for bun) `catalog`
|
|
6705
|
+
* / `catalogs`. Any other JSON value (a number, string, boolean, `null`, or
|
|
6706
|
+
* an object with malformed `packages`/`catalog`/`catalogs`) is malformed.
|
|
6707
|
+
*/
|
|
6708
|
+
const WorkspacesFieldSchema = effect.Schema.Union(PackageJsonWorkspacesArraySchema, PackageJsonWorkspacesObjectSchema).annotations({ identifier: "PackageJsonWorkspacesField" });
|
|
6709
|
+
const PackageJsonWithWorkspacesSchema = effect.Schema.Struct({ workspaces: effect.Schema.optionalWith(WorkspacesFieldSchema, { nullable: true }) });
|
|
6710
|
+
/**
|
|
6711
|
+
* Parse the `workspaces` field out of a root `package.json`'s text.
|
|
6712
|
+
*
|
|
6713
|
+
* @param content - Raw `package.json` text.
|
|
6714
|
+
* @returns An Effect yielding the workspaces slice; all fields are `undefined`
|
|
6715
|
+
* when the manifest has no `workspaces` field, or when `workspaces` is
|
|
6716
|
+
* explicitly `null` (both are legitimate, common shapes — not every root
|
|
6717
|
+
* `package.json` declares workspaces, and `null` is a plausible output of
|
|
6718
|
+
* tooling that serializes a stripped field). Fails with
|
|
6719
|
+
* {@link CatalogAssemblyError} when the text is not valid JSON, or when a
|
|
6720
|
+
* present, non-null `workspaces` field is not a valid npm/bun shape (not an
|
|
6721
|
+
* array of strings and not an object with valid
|
|
6722
|
+
* `packages`/`catalog`/`catalogs`) — an unreadable manifest must never be
|
|
6723
|
+
* silently treated as an empty one, since that would make every dependency
|
|
6724
|
+
* in the workspace look "added".
|
|
6725
|
+
*
|
|
6726
|
+
* @public
|
|
6727
|
+
*/
|
|
6728
|
+
const parsePackageJsonWorkspaces = (content) => effect.Effect.gen(function* () {
|
|
6729
|
+
const parsed = yield* effect.Effect.try({
|
|
6730
|
+
try: () => JSON.parse(content),
|
|
6731
|
+
catch: (error) => new CatalogAssemblyError({
|
|
6732
|
+
source: "manifest",
|
|
6733
|
+
reason: `invalid json: ${String(error)}`
|
|
6734
|
+
})
|
|
6735
|
+
});
|
|
6736
|
+
const ws = (yield* effect.Schema.decodeUnknown(PackageJsonWithWorkspacesSchema)(parsed).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
6737
|
+
source: "manifest",
|
|
6738
|
+
reason: `malformed workspaces field: ${effect.ParseResult.TreeFormatter.formatErrorSync(error)}`
|
|
6739
|
+
})))).workspaces;
|
|
6740
|
+
if (ws === void 0) return {};
|
|
6741
|
+
if (Array.isArray(ws)) return { packages: ws };
|
|
6742
|
+
return {
|
|
6743
|
+
packages: ws.packages,
|
|
6744
|
+
catalog: ws.catalog,
|
|
6745
|
+
catalogs: ws.catalogs
|
|
6746
|
+
};
|
|
6747
|
+
});
|
|
6748
|
+
/**
|
|
6749
|
+
* Build a {@link CatalogSet} from a root `package.json`'s `workspaces` field.
|
|
6750
|
+
*
|
|
6751
|
+
* @remarks
|
|
6752
|
+
* `workspaces.catalog` becomes the `"default"` catalog; every key of
|
|
6753
|
+
* `workspaces.catalogs` becomes a catalog of that name. This mirrors how
|
|
6754
|
+
* {@link CatalogSet.fromWorkspaceYaml} treats pnpm's `catalog:` / `catalogs:`.
|
|
6755
|
+
*
|
|
6756
|
+
* Declaring the default catalog twice — once as `workspaces.catalog` and
|
|
6757
|
+
* again as `workspaces.catalogs.default` — is rejected with
|
|
6758
|
+
* {@link CatalogAssemblyError} rather than silently resolved (pnpm itself
|
|
6759
|
+
* rejects the equivalent duplication in `pnpm-workspace.yaml`). Presence is
|
|
6760
|
+
* checked structurally (`!== undefined` / `Object.hasOwn`), not by
|
|
6761
|
+
* truthiness, so an explicitly-declared empty catalog (`catalog: {}` or
|
|
6762
|
+
* `catalogs: { default: {} }`) still counts as a declaration.
|
|
6763
|
+
*
|
|
6764
|
+
* @param content - Raw `package.json` text.
|
|
6765
|
+
*
|
|
6766
|
+
* @public
|
|
6767
|
+
*/
|
|
6768
|
+
const catalogSetFromPackageJson = (content) => parsePackageJsonWorkspaces(content).pipe(effect.Effect.flatMap((ws) => {
|
|
6769
|
+
const hasCatalog = ws.catalog !== void 0;
|
|
6770
|
+
const hasCatalogsDefault = ws.catalogs !== void 0 && Object.hasOwn(ws.catalogs, "default");
|
|
6771
|
+
if (hasCatalog && hasCatalogsDefault) return effect.Effect.fail(new CatalogAssemblyError({
|
|
6772
|
+
source: "manifest",
|
|
6773
|
+
reason: "the default catalog is defined twice: once as `workspaces.catalog` and once as `workspaces.catalogs.default` — remove one"
|
|
6774
|
+
}));
|
|
6775
|
+
return effect.Effect.succeed(CatalogSet.fromCatalogs({
|
|
6776
|
+
...hasCatalog ? { default: ws.catalog } : {},
|
|
6777
|
+
...ws.catalogs ?? {}
|
|
6778
|
+
}));
|
|
6779
|
+
}));
|
|
6780
|
+
//#endregion
|
|
6781
|
+
//#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
|
|
6680
6782
|
/**
|
|
6681
6783
|
* The ONE code path that reads the working tree's catalog sources
|
|
6682
6784
|
* (`pnpm-workspace.yaml` + `pnpm-lock.yaml`). Consumed by
|
|
@@ -6695,6 +6797,20 @@ var CatalogSet = class CatalogSet extends effect.Schema.Class("CatalogSet")({ en
|
|
|
6695
6797
|
*/
|
|
6696
6798
|
const lockfileCatalogsFromText = (text) => parse$3(text).pipe(effect.Effect.map((parsed) => CatalogSet.fromLockfileCatalogs(parsed?.catalogs)), effect.Effect.orElseSucceed(() => CatalogSet.empty()));
|
|
6697
6799
|
/**
|
|
6800
|
+
* Read catalogs from the root `package.json` `workspaces` field. Missing or
|
|
6801
|
+
* unreadable manifest yields an empty set — a repo with no catalogs is normal.
|
|
6802
|
+
*
|
|
6803
|
+
* @internal
|
|
6804
|
+
*/
|
|
6805
|
+
const readPackageJsonCatalogs = (fs, path, root) => effect.Effect.gen(function* () {
|
|
6806
|
+
const pkgPath = path.join(root, "package.json");
|
|
6807
|
+
if (!(yield* fs.exists(pkgPath).pipe(effect.Effect.orElseSucceed(() => false)))) return CatalogSet.empty();
|
|
6808
|
+
return yield* catalogSetFromPackageJson(yield* fs.readFileString(pkgPath).pipe(effect.Effect.mapError((error) => new CatalogAssemblyError({
|
|
6809
|
+
source: "manifest",
|
|
6810
|
+
reason: `failed to read ${pkgPath}: ${String(error)}`
|
|
6811
|
+
}))));
|
|
6812
|
+
});
|
|
6813
|
+
/**
|
|
6698
6814
|
* Read the working tree's catalog state at `root`.
|
|
6699
6815
|
*
|
|
6700
6816
|
* A missing `pnpm-lock.yaml` yields empty lockfile catalogs; any OTHER read
|
|
@@ -6706,11 +6822,17 @@ const lockfileCatalogsFromText = (text) => parse$3(text).pipe(effect.Effect.map(
|
|
|
6706
6822
|
const readWorktreeCatalogState = (root) => effect.Effect.gen(function* () {
|
|
6707
6823
|
const fs = yield* _effect_platform.FileSystem.FileSystem;
|
|
6708
6824
|
const path = yield* _effect_platform.Path.Path;
|
|
6709
|
-
const
|
|
6710
|
-
const
|
|
6825
|
+
const manifestPath = path.join(root, "pnpm-workspace.yaml");
|
|
6826
|
+
const hasPnpmManifest = yield* fs.exists(manifestPath).pipe(effect.Effect.orElseSucceed(() => false));
|
|
6827
|
+
const manifest = hasPnpmManifest ? yield* readWorkspaceManifest(root) : {
|
|
6828
|
+
catalog: void 0,
|
|
6829
|
+
catalogs: void 0,
|
|
6830
|
+
configDependencies: void 0
|
|
6831
|
+
};
|
|
6832
|
+
const inline = hasPnpmManifest ? CatalogSet.fromCatalogs(inlineCatalogs({
|
|
6711
6833
|
catalog: manifest.catalog,
|
|
6712
6834
|
catalogs: manifest.catalogs
|
|
6713
|
-
}));
|
|
6835
|
+
})) : yield* readPackageJsonCatalogs(fs, path, root);
|
|
6714
6836
|
const lockPath = path.join(root, "pnpm-lock.yaml");
|
|
6715
6837
|
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({
|
|
6716
6838
|
source: "lockfile",
|
|
@@ -8221,7 +8343,7 @@ minimatch.Minimatch = Minimatch;
|
|
|
8221
8343
|
minimatch.escape = escape;
|
|
8222
8344
|
minimatch.unescape = unescape;
|
|
8223
8345
|
//#endregion
|
|
8224
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
8346
|
+
//#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
|
|
8225
8347
|
/**
|
|
8226
8348
|
* Schema for supported package manager identifiers.
|
|
8227
8349
|
*
|
|
@@ -9762,7 +9884,7 @@ function modifyImpl(text, path, value, formattingOptions) {
|
|
|
9762
9884
|
return [];
|
|
9763
9885
|
}
|
|
9764
9886
|
//#endregion
|
|
9765
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9887
|
+
//#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
|
|
9766
9888
|
const DepRecord = effect.Schema.optionalWith(effect.Schema.Record({
|
|
9767
9889
|
key: effect.Schema.String,
|
|
9768
9890
|
value: effect.Schema.String
|
|
@@ -9831,7 +9953,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
9831
9953
|
}
|
|
9832
9954
|
};
|
|
9833
9955
|
//#endregion
|
|
9834
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9956
|
+
//#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
|
|
9835
9957
|
/**
|
|
9836
9958
|
* Service for reading a monorepo's workspace state at a specific moment: any
|
|
9837
9959
|
* git ref (via `git show`/`git ls-tree`, without checking the ref out) or the
|
|
@@ -9858,7 +9980,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
|
|
|
9858
9980
|
*/
|
|
9859
9981
|
var PointInTimeWorkspace = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/PointInTimeWorkspace")() {};
|
|
9860
9982
|
//#endregion
|
|
9861
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
9983
|
+
//#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
|
|
9862
9984
|
const normalize$1 = (pattern) => pattern.replace(/\/\*\*$/, "/*");
|
|
9863
9985
|
const toRegex = (glob) => new RegExp(`^${glob.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]")}$`);
|
|
9864
9986
|
/**
|
|
@@ -9901,7 +10023,7 @@ const compileWorkspaceGlobs = (patterns) => {
|
|
|
9901
10023
|
};
|
|
9902
10024
|
};
|
|
9903
10025
|
//#endregion
|
|
9904
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10026
|
+
//#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
|
|
9905
10027
|
/**
|
|
9906
10028
|
* Stderr shapes that mean "the path is not present at this ref" rather than
|
|
9907
10029
|
* "the git command failed."
|
|
@@ -9993,7 +10115,7 @@ const makeGitReader = (executor, options) => {
|
|
|
9993
10115
|
};
|
|
9994
10116
|
};
|
|
9995
10117
|
//#endregion
|
|
9996
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10118
|
+
//#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
|
|
9997
10119
|
/**
|
|
9998
10120
|
* Live layer for the {@link PointInTimeWorkspace} service.
|
|
9999
10121
|
*
|
|
@@ -10068,16 +10190,17 @@ const PointInTimeWorkspaceLive = effect.Layer.effect(PointInTimeWorkspace, effec
|
|
|
10068
10190
|
const resolveRoot = (cwd) => workspaceRoot.find(cwd ?? process.cwd());
|
|
10069
10191
|
const readAtRef = (root, ref) => effect.Effect.gen(function* () {
|
|
10070
10192
|
const wsYaml = yield* reader.show(root, ref, "pnpm-workspace.yaml");
|
|
10071
|
-
const
|
|
10193
|
+
const rootPkgJson = effect.Option.isSome(wsYaml) ? effect.Option.none() : yield* reader.show(root, ref, "package.json");
|
|
10194
|
+
const manifest = effect.Option.isSome(wsYaml) ? yield* workspaceManifestFromYaml(wsYaml.value) : effect.Option.isSome(rootPkgJson) ? yield* parsePackageJsonWorkspaces(rootPkgJson.value) : {
|
|
10072
10195
|
catalog: void 0,
|
|
10073
10196
|
catalogs: void 0,
|
|
10074
10197
|
configDependencies: void 0,
|
|
10075
10198
|
packages: void 0
|
|
10076
10199
|
};
|
|
10077
|
-
const inline = CatalogSet.fromCatalogs(inlineCatalogs({
|
|
10200
|
+
const inline = effect.Option.isSome(wsYaml) ? CatalogSet.fromCatalogs(inlineCatalogs({
|
|
10078
10201
|
catalog: manifest.catalog,
|
|
10079
10202
|
catalogs: manifest.catalogs
|
|
10080
|
-
}));
|
|
10203
|
+
})) : effect.Option.isSome(rootPkgJson) ? yield* catalogSetFromPackageJson(rootPkgJson.value) : CatalogSet.empty();
|
|
10081
10204
|
const lockText = yield* reader.show(root, ref, "pnpm-lock.yaml");
|
|
10082
10205
|
const lockCatalogs = yield* lockfileCatalogsAtRef(lockText);
|
|
10083
10206
|
const compiled = compileWorkspaceGlobs(manifest.packages ?? []);
|
|
@@ -10135,7 +10258,7 @@ const PointInTimeWorkspaceLive = effect.Layer.effect(PointInTimeWorkspace, effec
|
|
|
10135
10258
|
});
|
|
10136
10259
|
}));
|
|
10137
10260
|
//#endregion
|
|
10138
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10261
|
+
//#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
|
|
10139
10262
|
/**
|
|
10140
10263
|
* Schema for package publish targets.
|
|
10141
10264
|
*
|
|
@@ -10178,7 +10301,7 @@ var PublishTarget = class extends effect.Schema.Class("PublishTarget")({
|
|
|
10178
10301
|
provenance: effect.Schema.optionalWith(effect.Schema.Boolean, { default: () => false })
|
|
10179
10302
|
}) {};
|
|
10180
10303
|
//#endregion
|
|
10181
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10304
|
+
//#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
|
|
10182
10305
|
/**
|
|
10183
10306
|
* Service for detecting whether a workspace package is publishable and
|
|
10184
10307
|
* identifying its publish targets (npm, GitHub Packages, etc.).
|
|
@@ -10240,7 +10363,7 @@ var PublishTarget = class extends effect.Schema.Class("PublishTarget")({
|
|
|
10240
10363
|
*/
|
|
10241
10364
|
var PublishabilityDetector = class extends effect.Context.Tag("@spencerbeggs/workspaces-effect/PublishabilityDetector")() {};
|
|
10242
10365
|
//#endregion
|
|
10243
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10366
|
+
//#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
|
|
10244
10367
|
/**
|
|
10245
10368
|
* Default live implementation of the {@link PublishabilityDetector} service.
|
|
10246
10369
|
*
|
|
@@ -10312,7 +10435,7 @@ const PublishabilityDetectorLive = effect.Layer.succeed(PublishabilityDetector,
|
|
|
10312
10435
|
return targets;
|
|
10313
10436
|
}).pipe(effect.Effect.withSpan("PublishabilityDetector.detect", { attributes: { "workspace.package": pkg.name } })) });
|
|
10314
10437
|
//#endregion
|
|
10315
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10438
|
+
//#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
|
|
10316
10439
|
/**
|
|
10317
10440
|
* Live implementation of the {@link WorkspaceDiscovery} service.
|
|
10318
10441
|
*
|
|
@@ -10599,7 +10722,7 @@ const WorkspaceDiscoveryLive = effect.Layer.effect(WorkspaceDiscovery, effect.Ef
|
|
|
10599
10722
|
};
|
|
10600
10723
|
}));
|
|
10601
10724
|
//#endregion
|
|
10602
|
-
//#region ../../node_modules/.pnpm/workspaces-effect@2.
|
|
10725
|
+
//#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
|
|
10603
10726
|
/**
|
|
10604
10727
|
* Live implementation of the {@link WorkspaceRoot} service.
|
|
10605
10728
|
*
|
|
@@ -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
|