UNPKG

codemirror-json-schema

Version:

Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`

124 lines 3.75 kB
{ "name": "codemirror-json-schema", "license": "MIT", "version": "0.8.0", "description": "Codemirror 6 extensions that provide full JSONSchema support for `@codemirror/lang-json` and `codemirror-json5`", "contributors": [ { "name": "Samuel Imolorhe", "url": "https://xkoji.dev/" }, { "name": "Rikki Schulte", "url": "https://rikki.dev" } ], "keywords": [ "codemirror", "codemirror6", "jsonschema", "jsonschema-validation", "json5", "json", "editor" ], "type": "module", "types": "dist/index.d.ts", "module": "dist/index.js", "main": "cjs/index.js", "files": [ "dist", "cjs", "README.md", "CHANGELOG.md", "docs" ], "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts", "require": "./cjs/index.js", "default": "./cjs/index.js" }, "./json5": { "import": "./dist/json5/index.js", "types": "./dist/json5/index.d.ts", "require": "./cjs/json5/index.js", "default": "./cjs/json5/index.js" }, "./yaml": { "import": "./dist/yaml/index.js", "types": "./dist/yaml/index.d.ts", "require": "./cjs/yaml/index.js", "default": "./cjs/yaml/index.js" } }, "repository": "github:acao/codemirror-json-schema", "homepage": "https://codemirror-json-schema.netlify.app/", "dependencies": { "@sagold/json-pointer": "^5.1.1", "@shikijs/markdown-it": "^1.22.2", "best-effort-json-parser": "^1.1.2", "json-schema": "^0.4.0", "json-schema-library": "^9.3.5", "loglevel": "^1.9.1", "markdown-it": "^14.1.0", "shiki": "^1.22.2", "yaml": "^2.3.4" }, "optionalDependencies": { "@codemirror/autocomplete": "^6.16.2", "@codemirror/lang-json": "^6.0.1", "@codemirror/lang-yaml": "^6.1.1", "codemirror-json5": "^1.0.3", "json5": "^2.2.3" }, "peerDependencies": { "@codemirror/language": "^6.10.2", "@codemirror/lint": "^6.8.0", "@codemirror/state": "^6.4.1", "@codemirror/view": "^6.27.0", "@lezer/common": "^1.2.1" }, "devDependencies": { "@changesets/changelog-github": "^0.4.8", "@changesets/cli": "^2.26.2", "@codemirror/autocomplete": "^6.16.2", "@codemirror/commands": "^6.6.0", "@codemirror/language": "^6.10.2", "@codemirror/lint": "^6.8.0", "@codemirror/state": "^6.4.1", "@codemirror/theme-one-dark": "^6.1.2", "@codemirror/view": "^6.27.0", "@evilmartians/lefthook": "^1.4.6", "@lezer/common": "^1.2.1", "@types/json-schema": "^7.0.12", "@types/markdown-it": "^13.0.7", "@types/node": "^20.4.2", "@vitest/coverage-v8": "^2.0.5", "codemirror-json5": "^1.0.3", "happy-dom": "^10.3.2", "jsdom": "^24.1.1", "json5": "^2.2.3", "prettier": "^3.3.3", "typedoc": "^0.24.8", "typedoc-plugin-markdown": "^3.15.3", "typescript": "^5.5.2", "vite": "^5.3.1", "vitest": "^1.6.0", "vitest-dom": "^0.1.1", "vite-tsconfig-paths": "^4.3.1" }, "scripts": { "dev": "vite ./dev --port 3000", "build": "pnpm tsc && tsc --module commonjs --outDir cjs && vite build ./dev --outDir ../public --emptyOutDir", "test": "vitest --dom", "test:coverage": "vitest run --dom --coverage ", "tsc": "tsc && pnpm replace:env", "version-packages": "changeset version && pnpm typedoc && pnpm prettier:write CHANGELOG.md && git add package.json pnpm-lock.yaml CHANGELOG.md", "release": "pnpm build && changeset publish", "typedoc": "typedoc --out docs src/index.ts src/json5.ts && pnpm prettier:write docs/**/*", "prettier:write": "prettier --ignore-path .gitignore --write", "replace:env": "sh scripts/replace-env.sh" } }