refactor(scripts): cleanup & enforce code style (#1388)
This commit is contained in:
1 parent
7db9b234c1
commit
5d74d700a2
23 files changed
+290
-270
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
import { REPO_ROOT, USERSTYLES_SCHEMA } from "@/constants.ts";
|
||||
|
||||
import * as path from "@std/path";
|
||||
import { compile, type JSONSchema } from "json-schema-to-typescript";
|
||||
|
||||
const TYPES_ROOT = path.join(REPO_ROOT, "scripts/types");
|
||||
|
||||
const types = await compile(
|
||||
USERSTYLES_SCHEMA as JSONSchema,
|
||||
"UserstylesSchema",
|
||||
{
|
||||
bannerComment: "// deno-fmt-ignore-file",
|
||||
},
|
||||
);
|
||||
Deno.writeTextFileSync(path.join(TYPES_ROOT, "userstyles.d.ts"), types);
|
||||
Reference in new issue
Block a user