Extract the public catalog contract into a shared package (#7) #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-7-shared-catalog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #7.
What
Creates
packages/catalog(@garage/catalog) as the single, versioned, runtime-validated catalog contract consumed by both apps.PublicCatalogSchema/PublicCatalogItemSchema), product/response types, and the strictparseCatalogparser into the package.lib/catalog.ts, API route, tests import from@garage/catalog).fetchCatalogstays app-local.workspace:*and declaretranspilePackages: ["@garage/catalog"].Acceptance criteria
packages/catalogmarks both apps affected (both list it as aworkspace:*dependency).Verification
@garage/catalogtests: 5 passed.