Skip to content

Commit de2f9df

Browse files
committed
chore: move schema to assets/, add dist/ to gitignore
1 parent 5f5218c commit de2f9df

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
node_modules/
33

44
# Build output
5-
dist/*
6-
!dist/oh-my-opencode.schema.json
5+
dist/
76

87
# IDE
98
.idea/

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Schema 자동 완성이 지원됩니다:
202202

203203
```json
204204
{
205-
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json"
205+
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"
206206
}
207207
```
208208

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Schema autocomplete is supported:
201201

202202
```json
203203
{
204-
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json"
204+
"$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json"
205205
}
206206
```
207207

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json",
3+
"$id": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
44
"title": "Oh My OpenCode Configuration",
55
"description": "Configuration schema for oh-my-opencode plugin",
66
"type": "object",

script/build-schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import * as z from "zod"
33
import { OhMyOpenCodeConfigSchema } from "../src/config/schema"
44

5-
const SCHEMA_OUTPUT_PATH = "dist/oh-my-opencode.schema.json"
5+
const SCHEMA_OUTPUT_PATH = "assets/oh-my-opencode.schema.json"
66

77
async function main() {
88
console.log("Generating JSON Schema...")
@@ -14,7 +14,7 @@ async function main() {
1414

1515
const finalSchema = {
1616
$schema: "http://json-schema.org/draft-07/schema#",
17-
$id: "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/dist/oh-my-opencode.schema.json",
17+
$id: "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
1818
title: "Oh My OpenCode Configuration",
1919
description: "Configuration schema for oh-my-opencode plugin",
2020
...jsonSchema,

0 commit comments

Comments
 (0)