···4455## Info
6677-> To get started, run `deno run -A jsr:@hotsocket/lexiconqueror`
77+### Get Started
88+99+- Run `deno run -A jsr:@hotsocket/lexiconqueror setup` in your project root
1010+- Configure imports under `"@/"` to point to your `outputDir`
1111+- Add `jsr:@hotsocket/dhmo` and `jsr:@hotsocket/atproto-common` to your project
1212+- Run `deno run -A jsr:@hotsocket/lexiconqueror download` to retrieve lexicons
1313+- Run `deno run -A jsr:@hotsocket/lexiconqueror convert` to convert your downloaded lexicons to TypeScript files
814915### Links
1016
···11+# Additional JSDoc Tags
22+33+This document outlines extra tags used in generated doc comments.
44+55+| Tag | Associated Types | Description |
66+| ----------------- | ---------------- | ------------------------------------------- |
77+| `@lextype <type>` | (all) | The original type specified in the lexicon. |
+3-6
npm.ts
···6677import { build, emptyDir } from "@deno/dnt";
88import { default as denoJson } from "./deno.json" with { type: "json" };
99-import { PackageMappedSpecifier, SpecifierMappings } from "@deno/dnt/transform";
1091110const OUT_DIR = "./npm";
1211await emptyDir(OUT_DIR);
13121414-const imports = denoJson.imports as Record<string, string>;
1313+// const imports = denoJson.imports as Record<string, string>;
15141615await build({
1716 filterDiagnostic(diag) {
···4645 },
4746 } as PackageJson,
4847 compilerOptions: {
4949- lib: [
5050- "DOM",
5151- "ESNext",
5252- ],
4848+ lib: ["DOM", "ESNext"],
5349 },
5450 // don't do commonjs, kids!
5551 scriptModule: false,
···128124 /**
129125 * rest of the fields
130126 */
127127+ //deno-lint-ignore no-explicit-any
131128 [propertyName: string]: any;
132129}
+8-2
src/config.ts
···3636 z.templateLiteral(["at://", did_z]),
3737 z.templateLiteral(["at://", z.hostname()]),
3838]);
3939-/** zod union of git and at:// input formats */
4040-export const anyInput = z.union([atInput, gitInput]);
3939+4040+/** file: input format */
4141+export const fileInput = z.union([
4242+ z.string().regex(/^file:.*/),
4343+]);
4444+4545+/** zod union of all input formats */
4646+export const anyInput = z.union([atInput, gitInput, fileInput]);
41474248/** lxq.json format */
4349export const config_z = z.object({
+6
src/config_public.ts
···11+/*
22+ * This Source Code Form is subject to the terms of the Mozilla Public
33+ * License, v. 2.0. If a copy of the MPL was not distributed with this
44+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
55+ */
66+17import z from "@zod/zod";
28import { config_z } from "./config.ts";
39