chore: move schema to assets/, add dist/ to gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,8 +2,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
# Build output
|
# Build output
|
||||||
dist/*
|
dist/
|
||||||
!dist/oh-my-opencode.schema.json
|
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
.idea/
|
.idea/
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ Schema 자동 완성이 지원됩니다:
|
|||||||
|
|
||||||
```json
|
```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"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ Schema autocomplete is supported:
|
|||||||
|
|
||||||
```json
|
```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"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$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",
|
"title": "Oh My OpenCode Configuration",
|
||||||
"description": "Configuration schema for oh-my-opencode plugin",
|
"description": "Configuration schema for oh-my-opencode plugin",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
import * as z from "zod"
|
import * as z from "zod"
|
||||||
import { OhMyOpenCodeConfigSchema } from "../src/config/schema"
|
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() {
|
async function main() {
|
||||||
console.log("Generating JSON Schema...")
|
console.log("Generating JSON Schema...")
|
||||||
@@ -14,7 +14,7 @@ async function main() {
|
|||||||
|
|
||||||
const finalSchema = {
|
const finalSchema = {
|
||||||
$schema: "http://json-schema.org/draft-07/schema#",
|
$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",
|
title: "Oh My OpenCode Configuration",
|
||||||
description: "Configuration schema for oh-my-opencode plugin",
|
description: "Configuration schema for oh-my-opencode plugin",
|
||||||
...jsonSchema,
|
...jsonSchema,
|
||||||
|
|||||||
Reference in New Issue
Block a user