From 7b10167995bcf3576cdc286e55272f414dc5d4e3 Mon Sep 17 00:00:00 2001 From: Stefan Probst Date: Thu, 5 Dec 2024 18:08:10 +0100 Subject: [PATCH] fix: actually make paths type public --- .changeset/kind-comics-dance.md | 5 +++++ src/index.ts | 1 + src/resources.ts | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/kind-comics-dance.md diff --git a/.changeset/kind-comics-dance.md b/.changeset/kind-comics-dance.md new file mode 100644 index 0000000..0c598c7 --- /dev/null +++ b/.changeset/kind-comics-dance.md @@ -0,0 +1,5 @@ +--- +"@acdh-oeaw/keystatic-lib": patch +--- + +actually make paths type public diff --git a/src/index.ts b/src/index.ts index fd8a21c..8b13fe7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,5 +8,6 @@ export { createCollectionPaths, createSingleton, createSingletonPaths, + type Paths, } from "./resources"; export { withI18nPrefix, type WithoutI18nPrefix } from "./with-i18n-prefix"; diff --git a/src/resources.ts b/src/resources.ts index 0a91b21..31ca9b3 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -2,7 +2,6 @@ import type { Collection, ComponentSchema, Singleton } from "@keystatic/core"; import type { Locale } from "./config"; -/** @private */ export function createPaths(path: TPath, locale: Locale) { return { assetPath: `/content/assets/${locale}${path}`,