diff --git a/.gitignore b/.gitignore index c3e77f0..639c215 100644 --- a/.gitignore +++ b/.gitignore @@ -2,8 +2,7 @@ node_modules/ # Build output -dist/* -!dist/oh-my-opencode.schema.json +dist/ # IDE .idea/ diff --git a/README.ko.md b/README.ko.md index 5f5dcee..f623a34 100644 --- a/README.ko.md +++ b/README.ko.md @@ -202,7 +202,7 @@ Schema 자동 완성이 지원됩니다: ```json { - "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json" + "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json" } ``` diff --git a/README.md b/README.md index 7c58652..09f7439 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Schema autocomplete is supported: ```json { - "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json" + "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json" } ``` diff --git a/dist/oh-my-opencode.schema.json b/assets/oh-my-opencode.schema.json similarity index 98% rename from dist/oh-my-opencode.schema.json rename to assets/oh-my-opencode.schema.json index fe7c129..5336c77 100644 --- a/dist/oh-my-opencode.schema.json +++ b/assets/oh-my-opencode.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json", + "$id": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", "title": "Oh My OpenCode Configuration", "description": "Configuration schema for oh-my-opencode plugin", "type": "object", diff --git a/script/build-schema.ts b/script/build-schema.ts index 43a5353..e2b0aa6 100644 --- a/script/build-schema.ts +++ b/script/build-schema.ts @@ -2,7 +2,7 @@ import * as z from "zod" import { OhMyOpenCodeConfigSchema } from "../src/config/schema" -const SCHEMA_OUTPUT_PATH = "dist/oh-my-opencode.schema.json" +const SCHEMA_OUTPUT_PATH = "assets/oh-my-opencode.schema.json" async function main() { console.log("Generating JSON Schema...") @@ -14,7 +14,7 @@ async function main() { const finalSchema = { $schema: "http://json-schema.org/draft-07/schema#", - $id: "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json", + $id: "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json", title: "Oh My OpenCode Configuration", description: "Configuration schema for oh-my-opencode plugin", ...jsonSchema,