social bookmarking for atproto
1/*
2 * clippr: a social bookmarking service for the AT Protocol
3 * Copyright (c) 2025 clippr contributors.
4 * SPDX-License-Identifier: AGPL-3.0-only
5 */
6
7// @ts-ignore
8import {defineLexiconConfig} from "@atcute/lex-cli";
9
10export default defineLexiconConfig({
11 files: ["../lexdocs/**/*.json"],
12 outdir: "lib/lexicons",
13 mappings: [
14 {
15 nsid: ["com.atproto.*"],
16 imports: (nsid) => {
17 const specifier = nsid
18 .slice("com.atproto.".length)
19 .replaceAll(".", "/");
20 return {
21 type: "namespace",
22 from: `@atcute/atproto/types/${specifier}`,
23 };
24 },
25 },
26 ],
27});