diff --git a/.changeset/19748-package-registry-docblock-cycle-edge.md b/.changeset/19748-package-registry-docblock-cycle-edge.md new file mode 100644 index 00000000000..a6bc484b58d --- /dev/null +++ b/.changeset/19748-package-registry-docblock-cycle-edge.md @@ -0,0 +1,5 @@ +--- +'@objectstack/spec': patch +--- + +The doc comment on `InstallPackageRequestSchema`'s `enableOnInstall` key in `kernel/package-registry.zod.ts` no longer says `ManifestSchema` is declared in that file (it is declared in `kernel/manifest.zod.ts`), and its import-cycle reason now rests on the import that makes the cycle: `api/package-api.zod.ts`, which declares `PackageInstallRequestSchema`, imports `InstalledPackageSchema` from `kernel/package-registry.zod.ts` (#19748). Doc comment only; the directive against spelling `PackageInstallRequestSchema.shape.enableOnInstall` there is unchanged. diff --git a/packages/spec/src/kernel/package-registry.zod.ts b/packages/spec/src/kernel/package-registry.zod.ts index df3fdfe514b..abd76387f9d 100644 --- a/packages/spec/src/kernel/package-registry.zod.ts +++ b/packages/spec/src/kernel/package-registry.zod.ts @@ -342,7 +342,7 @@ export const InstallPackageRequestSchema = lazySchema(() => z.object({ * ## ⛔ Why the reference is documentary and not `…Schema.shape.…` * * `PackageInstallRequestSchema` sits ABOVE this module in the import graph — - * it is built from `ManifestSchema` and `InstalledPackageSchema`, both + * its module, `src/api/package-api.zod.ts`, imports `InstalledPackageSchema`, * declared here — so a reference from here up to it is an import cycle. It * is not a cycle the `lazySchema` proxy absorbs: under `OS_EAGER_SCHEMAS=1`, * the mode `gen:schema` and `check:authorable-surface` run in, the factory