import { defineLexiconConfig } from "@atcute/lex-cli";

// generate sh.tangled types; resolve com.atproto refs from @atcute/atproto.
export default defineLexiconConfig({
	formatter: { type: "prettier" },
	generate: {
		outdir: "src/lib/api/lexicons/",
		clean: true,
		imports: ["@atcute/atproto"],
		files: [
			"../lexicons/*.json",
			"../lexicons/actor/**/*.json",
			"../lexicons/ci/**/*.json",
			"../lexicons/feed/**/*.json",
			"../lexicons/git/**/*.json",
			"../lexicons/graph/**/*.json",
			"../lexicons/issue/**/*.json",
			"../lexicons/knot/**/*.json",
			"../lexicons/label/**/*.json",
			"../lexicons/markup/**/*.json",
			"../lexicons/pipeline/**/*.json",
			"../lexicons/pulls/**/*.json",
			"../lexicons/query/**/*.json",
			"../lexicons/repo/**/*.json",
			"../lexicons/spindle/**/*.json",
			"../lexicons/string/**/*.json",
			"../lexicons/sync/**/*.json",
			"../bobbin/crates/types/lexicons/**/*.json"
		]
	}
});
