@savvy-web/silk-core 0.4.13 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/_rolldown/runtime.js +1 -2
- package/errors/BiomeSyncError.js +1 -2
- package/errors/ChangesetConfigError.js +1 -2
- package/errors/ConfigNotFoundError.js +1 -2
- package/errors/PublishTargetBindingError.js +1 -2
- package/errors/ReleaseChannelError.js +23 -0
- package/errors/WorkspaceAnalysisError.js +1 -2
- package/index.d.ts +26 -39
- package/index.js +2 -1
- package/package.json +4 -4
- package/pr-body/body.js +1 -2
- package/pr-body/diagnostics.js +1 -2
- package/pr-body/index.js +1 -2
- package/pr-body/linked-issue.js +1 -2
- package/pr-body/markers.js +1 -2
- package/pr-body/references.js +1 -2
- package/pr-body/region.js +1 -2
- package/schemas/BiomeConfig.js +1 -2
- package/schemas/ConfigDiscoverySchemas.js +1 -2
- package/schemas/SavvyInstallSection.js +1 -2
- package/schemas/SavvyOkfSection.js +1 -2
- package/schemas/SavvySections.js +1 -2
- package/schemas/VersioningSchemas.js +1 -2
- package/schemas/WorkspaceAnalysisSchemas.js +1 -2
- package/utils/TrailingSlash.js +1 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __exportAll = (all, no_symbols) => {
|
|
4
4
|
let target = {};
|
|
@@ -14,5 +14,4 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
return target;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
//#endregion
|
|
18
17
|
export { __exportAll };
|
package/errors/BiomeSyncError.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors/BiomeSyncError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when a Biome config file cannot be read or its `$schema` URL cannot be updated.
|
|
6
6
|
*
|
|
@@ -18,5 +18,4 @@ var BiomeSyncError = class extends Data.TaggedError("BiomeSyncError") {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { BiomeSyncError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors/ChangesetConfigError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when the `.changeset/config.json` file cannot be read or decoded.
|
|
6
6
|
*
|
|
@@ -17,5 +17,4 @@ var ChangesetConfigError = class extends Data.TaggedError("ChangesetConfigError"
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { ChangesetConfigError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors/ConfigNotFoundError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when a config file cannot be located in any of the expected locations.
|
|
6
6
|
*
|
|
@@ -18,5 +18,4 @@ var ConfigNotFoundError = class extends Data.TaggedError("ConfigNotFoundError")
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { ConfigNotFoundError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors/PublishTargetBindingError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when publishability detection selects a directory that the package's
|
|
6
6
|
* `dist/prod/targets.json` binding does not describe.
|
|
@@ -26,5 +26,4 @@ var PublishTargetBindingError = class extends Data.TaggedError("PublishTargetBin
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
29
|
export { PublishTargetBindingError };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Data } from "effect";
|
|
2
|
+
|
|
3
|
+
// src/errors/ReleaseChannelError.ts
|
|
4
|
+
/**
|
|
5
|
+
* Raised when a publish target declares a `releases` value that is not a known release channel.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A target's `releases` is one of `"all"`, `"stable"` or `"prerelease"`; an absent value means
|
|
9
|
+
* `"all"`. The bundler rejects anything else at build time, but a release reads the value again
|
|
10
|
+
* from `dist/prod/targets.json` or, before the build, from `publishConfig.targets`, and either can
|
|
11
|
+
* be hand-edited. An unknown value is refused rather than defaulted, because guessing which
|
|
12
|
+
* versions a registry should receive is how a prerelease ends up on `latest`.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.0
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
var ReleaseChannelError = class extends Data.TaggedError("ReleaseChannelError") {
|
|
18
|
+
get message() {
|
|
19
|
+
return `Package ${this.pkg} target "${this.id}" declares releases ${this.value}, which is not one of "all", "stable" or "prerelease".`;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { ReleaseChannelError };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Data } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/errors/WorkspaceAnalysisError.ts
|
|
4
4
|
/**
|
|
5
5
|
* Raised when workspace analysis fails for a given root directory.
|
|
6
6
|
*
|
|
@@ -18,5 +18,4 @@ var WorkspaceAnalysisError = class extends Data.TaggedError("WorkspaceAnalysisEr
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { WorkspaceAnalysisError };
|
package/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Equal, Hash, Option, Schema } from "effect";
|
|
2
2
|
import { Section, SectionId } from "@effected/templates";
|
|
3
3
|
import { PublishConfig, PublishTarget, VersioningStrategy } from "@effected/workspaces";
|
|
4
|
-
//#endregion
|
|
5
|
-
//#region src/errors/BiomeSyncError.d.ts
|
|
6
4
|
declare const BiomeSyncError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
7
5
|
readonly _tag: "BiomeSyncError";
|
|
8
6
|
} & Readonly<A>;
|
|
@@ -23,8 +21,6 @@ export declare class BiomeSyncError extends BiomeSyncError_base<{
|
|
|
23
21
|
}> {
|
|
24
22
|
get message(): string;
|
|
25
23
|
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region src/errors/ChangesetConfigError.d.ts
|
|
28
24
|
declare const ChangesetConfigError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
29
25
|
readonly _tag: "ChangesetConfigError";
|
|
30
26
|
} & Readonly<A>;
|
|
@@ -44,8 +40,6 @@ export declare class ChangesetConfigError extends ChangesetConfigError_base<{
|
|
|
44
40
|
}> {
|
|
45
41
|
get message(): string;
|
|
46
42
|
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/errors/ConfigNotFoundError.d.ts
|
|
49
43
|
declare const ConfigNotFoundError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
50
44
|
readonly _tag: "ConfigNotFoundError";
|
|
51
45
|
} & Readonly<A>;
|
|
@@ -66,8 +60,6 @@ export declare class ConfigNotFoundError extends ConfigNotFoundError_base<{
|
|
|
66
60
|
}> {
|
|
67
61
|
get message(): string;
|
|
68
62
|
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/errors/PublishTargetBindingError.d.ts
|
|
71
63
|
declare const PublishTargetBindingError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
72
64
|
readonly _tag: "PublishTargetBindingError";
|
|
73
65
|
} & Readonly<A>;
|
|
@@ -100,8 +92,32 @@ export declare class PublishTargetBindingError extends PublishTargetBindingError
|
|
|
100
92
|
}> {
|
|
101
93
|
get message(): string;
|
|
102
94
|
}
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
declare const ReleaseChannelError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
96
|
+
readonly _tag: "ReleaseChannelError";
|
|
97
|
+
} & Readonly<A>;
|
|
98
|
+
/**
|
|
99
|
+
* Raised when a publish target declares a `releases` value that is not a known release channel.
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* A target's `releases` is one of `"all"`, `"stable"` or `"prerelease"`; an absent value means
|
|
103
|
+
* `"all"`. The bundler rejects anything else at build time, but a release reads the value again
|
|
104
|
+
* from `dist/prod/targets.json` or, before the build, from `publishConfig.targets`, and either can
|
|
105
|
+
* be hand-edited. An unknown value is refused rather than defaulted, because guessing which
|
|
106
|
+
* versions a registry should receive is how a prerelease ends up on `latest`.
|
|
107
|
+
*
|
|
108
|
+
* @since 0.5.0
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export declare class ReleaseChannelError extends ReleaseChannelError_base<{
|
|
112
|
+
/** The package whose targets were being resolved. */
|
|
113
|
+
readonly pkg: string;
|
|
114
|
+
/** The `publishConfig.targets` key that declared the value. */
|
|
115
|
+
readonly id: string;
|
|
116
|
+
/** The declared value, as JSON. */
|
|
117
|
+
readonly value: string;
|
|
118
|
+
}> {
|
|
119
|
+
get message(): string;
|
|
120
|
+
}
|
|
105
121
|
declare const WorkspaceAnalysisError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
106
122
|
readonly _tag: "WorkspaceAnalysisError";
|
|
107
123
|
} & Readonly<A>;
|
|
@@ -122,8 +138,6 @@ export declare class WorkspaceAnalysisError extends WorkspaceAnalysisError_base<
|
|
|
122
138
|
}> {
|
|
123
139
|
get message(): string;
|
|
124
140
|
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/pr-body/linked-issue.d.ts
|
|
127
141
|
declare const LinkedIssueRef_base: Schema.Class<LinkedIssueRef, Schema.Struct<{
|
|
128
142
|
readonly number: Schema.Number;
|
|
129
143
|
readonly title: Schema.String;
|
|
@@ -163,8 +177,6 @@ declare class LinkedIssueRef extends LinkedIssueRef_base {
|
|
|
163
177
|
readonly state: string;
|
|
164
178
|
}): boolean;
|
|
165
179
|
}
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/pr-body/body.d.ts
|
|
168
180
|
/**
|
|
169
181
|
* The inputs to {@link ManagedPrBody.build}.
|
|
170
182
|
*
|
|
@@ -281,8 +293,6 @@ declare class ManagedPrBody {
|
|
|
281
293
|
*/
|
|
282
294
|
static extractReferences(existing: string): string;
|
|
283
295
|
}
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region src/pr-body/diagnostics.d.ts
|
|
286
296
|
/**
|
|
287
297
|
* The problems {@link PrBodyDiagnostic.scan} can report about a body's
|
|
288
298
|
* markers.
|
|
@@ -338,8 +348,6 @@ declare class PrBodyDiagnostic extends PrBodyDiagnostic_base {
|
|
|
338
348
|
*/
|
|
339
349
|
static scan(body: string): ReadonlyArray<PrBodyDiagnostic>;
|
|
340
350
|
}
|
|
341
|
-
//#endregion
|
|
342
|
-
//#region src/pr-body/markers.d.ts
|
|
343
351
|
/**
|
|
344
352
|
* The frozen `silk-release` marker vocabulary — the wire format of the shared
|
|
345
353
|
* PR-body contract.
|
|
@@ -437,8 +445,6 @@ declare class Markers {
|
|
|
437
445
|
*/
|
|
438
446
|
static readonly SQUASH_FENCE_LANGUAGE = "proposed-squash-commit";
|
|
439
447
|
}
|
|
440
|
-
//#endregion
|
|
441
|
-
//#region src/pr-body/references.d.ts
|
|
442
448
|
declare const ClosingReferences_base: Schema.Class<ClosingReferences, Schema.Struct<{
|
|
443
449
|
readonly ids: Schema.$Array<Schema.Number>;
|
|
444
450
|
}>, {}>;
|
|
@@ -568,8 +574,6 @@ declare class OwnedAttribute {
|
|
|
568
574
|
*/
|
|
569
575
|
static parse(priorBody: string): ReadonlySet<number>;
|
|
570
576
|
}
|
|
571
|
-
//#endregion
|
|
572
|
-
//#region src/pr-body/region.d.ts
|
|
573
577
|
/**
|
|
574
578
|
* The generic marker-delimited region grammar every silk-managed document
|
|
575
579
|
* uses: `<!-- token:start -->` … `<!-- token:end -->`.
|
|
@@ -654,8 +658,6 @@ declare class Region {
|
|
|
654
658
|
declare namespace index_d_exports {
|
|
655
659
|
export { ClosingReferences, LinkedIssueRef, ManagedPrBody, ManagedPrBodyOptions, Markers, OwnedAttribute, PrBodyDiagnostic, PrBodyDiagnosticCode, Region };
|
|
656
660
|
}
|
|
657
|
-
//#endregion
|
|
658
|
-
//#region src/schemas/BiomeConfig.d.ts
|
|
659
661
|
/**
|
|
660
662
|
* Result of a Biome schema URL sync or check operation.
|
|
661
663
|
*
|
|
@@ -696,8 +698,6 @@ export declare const BiomeSyncOptions: Schema.Struct<{
|
|
|
696
698
|
* @public
|
|
697
699
|
*/
|
|
698
700
|
export type BiomeSyncOptions = typeof BiomeSyncOptions.Type;
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region src/schemas/ConfigDiscoverySchemas.d.ts
|
|
701
701
|
/**
|
|
702
702
|
* The discovery strategy used to locate a config file.
|
|
703
703
|
*
|
|
@@ -753,8 +753,6 @@ export declare const ConfigDiscoveryOptions: Schema.Struct<{
|
|
|
753
753
|
* @public
|
|
754
754
|
*/
|
|
755
755
|
export type ConfigDiscoveryOptions = typeof ConfigDiscoveryOptions.Type;
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/schemas/SavvyInstallSection.d.ts
|
|
758
756
|
/**
|
|
759
757
|
* The hooks {@link savvyInstallDeps} can be generated for.
|
|
760
758
|
*
|
|
@@ -895,8 +893,6 @@ export declare function publishesBuiltLinkDirectory(manifest: unknown): boolean;
|
|
|
895
893
|
* @public
|
|
896
894
|
*/
|
|
897
895
|
export declare function savvyInstallBlock(hook: SavvyInstallHook): Section;
|
|
898
|
-
//#endregion
|
|
899
|
-
//#region src/schemas/SavvyOkfSection.d.ts
|
|
900
896
|
/**
|
|
901
897
|
* Section identity for the OKF bundle sync block.
|
|
902
898
|
*
|
|
@@ -975,8 +971,6 @@ export declare function savvyOkfSync(): string;
|
|
|
975
971
|
* @public
|
|
976
972
|
*/
|
|
977
973
|
export declare function savvyOkfBlock(): Section;
|
|
978
|
-
//#endregion
|
|
979
|
-
//#region src/schemas/SavvySections.d.ts
|
|
980
974
|
/**
|
|
981
975
|
* Section identity for the shared package-manager preamble.
|
|
982
976
|
*
|
|
@@ -1094,8 +1088,6 @@ export declare const SavvyToolchainSection: SectionId;
|
|
|
1094
1088
|
* @public
|
|
1095
1089
|
*/
|
|
1096
1090
|
export declare function savvyToolchainCheck(): string;
|
|
1097
|
-
//#endregion
|
|
1098
|
-
//#region src/schemas/VersioningSchemas.d.ts
|
|
1099
1091
|
/**
|
|
1100
1092
|
* Standard changesets configuration matching the `@changesets/config@4.0.0` spec.
|
|
1101
1093
|
*
|
|
@@ -1171,8 +1163,6 @@ export declare const SilkChangesetConfigFile: Schema.Struct<{
|
|
|
1171
1163
|
* @public
|
|
1172
1164
|
*/
|
|
1173
1165
|
export type SilkChangesetConfigFile = typeof SilkChangesetConfigFile.Type;
|
|
1174
|
-
//#endregion
|
|
1175
|
-
//#region src/schemas/WorkspaceAnalysisSchemas.d.ts
|
|
1176
1166
|
declare const SilkPublishConfig_base: Schema.Class<SilkPublishConfig, Schema.Struct<{
|
|
1177
1167
|
readonly access: Schema.optionalKey<Schema.Literals<readonly ["public", "restricted"]>>;
|
|
1178
1168
|
readonly registry: Schema.optionalKey<Schema.String>;
|
|
@@ -1321,8 +1311,6 @@ export declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
|
1321
1311
|
/** Pretty-print a WorkspaceAnalysis instance. */
|
|
1322
1312
|
static pretty: (self: WorkspaceAnalysis) => string;
|
|
1323
1313
|
}
|
|
1324
|
-
//#endregion
|
|
1325
|
-
//#region src/utils/TrailingSlash.d.ts
|
|
1326
1314
|
/**
|
|
1327
1315
|
* Trim trailing slashes from a string.
|
|
1328
1316
|
*
|
|
@@ -1336,6 +1324,5 @@ export declare class WorkspaceAnalysis extends WorkspaceAnalysis_base {
|
|
|
1336
1324
|
* @public
|
|
1337
1325
|
*/
|
|
1338
1326
|
export declare const trimTrailingSlashes: (s: string) => string;
|
|
1339
|
-
//#endregion
|
|
1340
1327
|
export { index_d_exports as PrBody, type SavvyInstallHook };
|
|
1341
1328
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { BiomeSyncError } from "./errors/BiomeSyncError.js";
|
|
|
2
2
|
import { ChangesetConfigError } from "./errors/ChangesetConfigError.js";
|
|
3
3
|
import { ConfigNotFoundError } from "./errors/ConfigNotFoundError.js";
|
|
4
4
|
import { PublishTargetBindingError } from "./errors/PublishTargetBindingError.js";
|
|
5
|
+
import { ReleaseChannelError } from "./errors/ReleaseChannelError.js";
|
|
5
6
|
import { WorkspaceAnalysisError } from "./errors/WorkspaceAnalysisError.js";
|
|
6
7
|
import { pr_body_exports } from "./pr-body/index.js";
|
|
7
8
|
import { BiomeSyncOptions, BiomeSyncResult } from "./schemas/BiomeConfig.js";
|
|
@@ -13,4 +14,4 @@ import { ChangesetConfigFile, SilkChangesetConfigFile } from "./schemas/Versioni
|
|
|
13
14
|
import { trimTrailingSlashes } from "./utils/TrailingSlash.js";
|
|
14
15
|
import { AnalyzedWorkspace, SilkPublishConfig, WorkspaceAnalysis } from "./schemas/WorkspaceAnalysisSchemas.js";
|
|
15
16
|
|
|
16
|
-
export { AnalyzedWorkspace, BiomeSyncError, BiomeSyncOptions, BiomeSyncResult, ChangesetConfigError, ChangesetConfigFile, ConfigDiscoveryOptions, ConfigLocation, ConfigNotFoundError, ConfigSource, LIFECYCLE_SCRIPTS_CONFIG_KEY, pr_body_exports as PrBody, PublishTargetBindingError, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkChangesetConfigFile, SilkPublishConfig, WorkspaceAnalysis, WorkspaceAnalysisError, publishesBuiltLinkDirectory, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck, trimTrailingSlashes };
|
|
17
|
+
export { AnalyzedWorkspace, BiomeSyncError, BiomeSyncOptions, BiomeSyncResult, ChangesetConfigError, ChangesetConfigFile, ConfigDiscoveryOptions, ConfigLocation, ConfigNotFoundError, ConfigSource, LIFECYCLE_SCRIPTS_CONFIG_KEY, pr_body_exports as PrBody, PublishTargetBindingError, ReleaseChannelError, SavvyBaseSection, SavvyHooksSection, SavvyInstallSection, SavvyOkfSection, SavvyToolchainSection, SilkChangesetConfigFile, SilkPublishConfig, WorkspaceAnalysis, WorkspaceAnalysisError, publishesBuiltLinkDirectory, savvyBasePreamble, savvyHooksHygiene, savvyInstallBlock, savvyInstallDeps, savvyOkfBlock, savvyOkfSync, savvyToolSection, savvyToolchainCheck, trimTrailingSlashes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Platform-free domain core of the Silk Suite: schemas, tagged errors, and the PR-body contract",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-core",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"./package.json": "./package.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@effected/github-references": "^0.
|
|
32
|
+
"@effected/github-references": "^0.11.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@effected/templates": "^0.
|
|
36
|
-
"@effected/workspaces": "^0.
|
|
35
|
+
"@effected/templates": "^0.14.0",
|
|
36
|
+
"@effected/workspaces": "^0.36.0",
|
|
37
37
|
"effect": "^4.0.0"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/pr-body/body.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Region } from "./region.js";
|
|
|
2
2
|
import { Markers } from "./markers.js";
|
|
3
3
|
import { ClosingReferences, OwnedAttribute } from "./references.js";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/pr-body/body.ts
|
|
6
6
|
const FENCE = "```";
|
|
7
7
|
/**
|
|
8
8
|
* The marker-delimited reference region, merging this run's references with
|
|
@@ -141,5 +141,4 @@ var ManagedPrBody = class ManagedPrBody {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
//#endregion
|
|
145
144
|
export { ManagedPrBody };
|
package/pr-body/diagnostics.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Region } from "./region.js";
|
|
|
2
2
|
import { Markers } from "./markers.js";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/pr-body/diagnostics.ts
|
|
6
6
|
/**
|
|
7
7
|
* The problems {@link PrBodyDiagnostic.scan} can report about a body's
|
|
8
8
|
* markers.
|
|
@@ -100,5 +100,4 @@ const countOccurrences = (haystack, needle) => {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
//#endregion
|
|
104
103
|
export { PrBodyDiagnostic, PrBodyDiagnosticCode };
|
package/pr-body/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { ClosingReferences, OwnedAttribute } from "./references.js";
|
|
|
6
6
|
import { ManagedPrBody } from "./body.js";
|
|
7
7
|
import { PrBodyDiagnostic, PrBodyDiagnosticCode } from "./diagnostics.js";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/pr-body/index.ts
|
|
10
10
|
var pr_body_exports = /* @__PURE__ */ __exportAll({
|
|
11
11
|
ClosingReferences: () => ClosingReferences,
|
|
12
12
|
LinkedIssueRef: () => LinkedIssueRef,
|
|
@@ -18,5 +18,4 @@ var pr_body_exports = /* @__PURE__ */ __exportAll({
|
|
|
18
18
|
Region: () => Region
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
-
//#endregion
|
|
22
21
|
export { ClosingReferences, LinkedIssueRef, ManagedPrBody, Markers, OwnedAttribute, PrBodyDiagnostic, PrBodyDiagnosticCode, Region, pr_body_exports };
|
package/pr-body/linked-issue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/pr-body/linked-issue.ts
|
|
4
4
|
/**
|
|
5
5
|
* The minimum an issue must carry to appear in a managed PR body.
|
|
6
6
|
*
|
|
@@ -40,5 +40,4 @@ var LinkedIssueRef = class extends Schema.Class("LinkedIssueRef")({
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
//#endregion
|
|
44
43
|
export { LinkedIssueRef };
|
package/pr-body/markers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Region } from "./region.js";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/pr-body/markers.ts
|
|
4
4
|
/**
|
|
5
5
|
* The frozen `silk-release` marker vocabulary — the wire format of the shared
|
|
6
6
|
* PR-body contract.
|
|
@@ -99,5 +99,4 @@ var Markers = class {
|
|
|
99
99
|
static SQUASH_FENCE_LANGUAGE = "proposed-squash-commit";
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
//#endregion
|
|
103
102
|
export { Markers };
|
package/pr-body/references.js
CHANGED
|
@@ -3,7 +3,7 @@ import { LinkedIssueRef } from "./linked-issue.js";
|
|
|
3
3
|
import { Schema } from "effect";
|
|
4
4
|
import { parseBareLines } from "@effected/github-references";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/pr-body/references.ts
|
|
7
7
|
/**
|
|
8
8
|
* An ordered list of issue ids destined for closing references, with the two
|
|
9
9
|
* renderers whose difference is the whole point of this module.
|
|
@@ -153,5 +153,4 @@ var OwnedAttribute = class {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
-
//#endregion
|
|
157
156
|
export { ClosingReferences, OwnedAttribute };
|
package/pr-body/region.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/pr-body/region.ts
|
|
2
2
|
/**
|
|
3
3
|
* The generic marker-delimited region grammar every silk-managed document
|
|
4
4
|
* uses: `<!-- token:start -->` … `<!-- token:end -->`.
|
|
@@ -101,5 +101,4 @@ var Region = class Region {
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
//#endregion
|
|
105
104
|
export { Region };
|
package/schemas/BiomeConfig.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/BiomeConfig.ts
|
|
4
4
|
/**
|
|
5
5
|
* Result of a Biome schema URL sync or check operation.
|
|
6
6
|
*
|
|
@@ -32,5 +32,4 @@ const BiomeSyncOptions = Schema.Struct({
|
|
|
32
32
|
gitignore: Schema.Boolean.pipe(Schema.withDecodingDefaultType(Effect.succeed(true)), Schema.withConstructorDefault(Effect.succeed(true)))
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
//#endregion
|
|
36
35
|
export { BiomeSyncOptions, BiomeSyncResult };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/ConfigDiscoverySchemas.ts
|
|
4
4
|
/**
|
|
5
5
|
* The discovery strategy used to locate a config file.
|
|
6
6
|
*
|
|
@@ -46,5 +46,4 @@ const ConfigDiscoveryOptions = Schema.Struct({
|
|
|
46
46
|
tool: Schema.optional(Schema.String)
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
export { ConfigDiscoveryOptions, ConfigLocation, ConfigSource };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommentStyle, SectionId } from "@effected/templates";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/SavvyInstallSection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Section identity for the dependency auto-install block.
|
|
6
6
|
*
|
|
@@ -228,5 +228,4 @@ function savvyInstallBlock(hook) {
|
|
|
228
228
|
return SavvyInstallSection.section(savvyInstallDeps(hook));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
//#endregion
|
|
232
231
|
export { LIFECYCLE_SCRIPTS_CONFIG_KEY, SavvyInstallSection, publishesBuiltLinkDirectory, savvyInstallBlock, savvyInstallDeps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommentStyle, SectionId } from "@effected/templates";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/SavvyOkfSection.ts
|
|
4
4
|
/**
|
|
5
5
|
* Section identity for the OKF bundle sync block.
|
|
6
6
|
*
|
|
@@ -95,5 +95,4 @@ function savvyOkfBlock() {
|
|
|
95
95
|
return SavvyOkfSection.section(savvyOkfSync());
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
//#endregion
|
|
99
98
|
export { SavvyOkfSection, savvyOkfBlock, savvyOkfSync };
|
package/schemas/SavvySections.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommentStyle, SectionId } from "@effected/templates";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/SavvySections.ts
|
|
4
4
|
/**
|
|
5
5
|
* Build a shell-hook section identity from a Silk tool name.
|
|
6
6
|
*
|
|
@@ -190,5 +190,4 @@ function savvyToolchainCheck() {
|
|
|
190
190
|
fi`;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
//#endregion
|
|
194
193
|
export { SavvyBaseSection, SavvyHooksSection, SavvyToolchainSection, savvyBasePreamble, savvyHooksHygiene, savvyToolSection, savvyToolchainCheck };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/schemas/VersioningSchemas.ts
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for how private packages are handled during versioning.
|
|
6
6
|
*
|
|
@@ -83,5 +83,4 @@ const SilkChangesetConfigFile = Schema.Struct({
|
|
|
83
83
|
_isSilk: Schema.Boolean.pipe(Schema.withDecodingDefaultType(Effect.succeed(true)), Schema.withConstructorDefault(Effect.succeed(true)))
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
//#endregion
|
|
87
86
|
export { ChangesetConfigFile, SilkChangesetConfigFile };
|
|
@@ -3,7 +3,7 @@ import { trimTrailingSlashes } from "../utils/TrailingSlash.js";
|
|
|
3
3
|
import { Effect, Equal, Function, Hash, Option, Schema } from "effect";
|
|
4
4
|
import { PublishConfig, PublishTarget, TagStyle, VersioningStrategy } from "@effected/workspaces";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/schemas/WorkspaceAnalysisSchemas.ts
|
|
7
7
|
const PublishProtocol = Schema.Literals(["npm", "jsr"]);
|
|
8
8
|
const PublishTargetShorthand = Schema.Literals([
|
|
9
9
|
"npm",
|
|
@@ -205,5 +205,4 @@ var WorkspaceAnalysis = class WorkspaceAnalysis extends Schema.TaggedClass()("Wo
|
|
|
205
205
|
};
|
|
206
206
|
WorkspaceAnalysis.pretty = Schema.toFormatter(WorkspaceAnalysis);
|
|
207
207
|
|
|
208
|
-
//#endregion
|
|
209
208
|
export { AnalyzedWorkspace, SilkPublishConfig, WorkspaceAnalysis };
|
package/utils/TrailingSlash.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/TrailingSlash.ts
|
|
2
2
|
/**
|
|
3
3
|
* Trim trailing slashes from a string.
|
|
4
4
|
*
|
|
@@ -17,5 +17,4 @@ const trimTrailingSlashes = (s) => {
|
|
|
17
17
|
return s.slice(0, end);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { trimTrailingSlashes };
|