Use these files as the source of truth:
AGENTS.mdREADME.mdpackage.jsonsrc/types.tssrc/JsonEditorPlugin.tssrc/components/JsonEditor.vuetests/unit/*
Always follow:
- This repo is a published library, not just a demo app. Prefer API-safe, minimal changes.
- Preserve current public exports:
- default component export;
- named
JsonEditorPluginexport; - generated declaration output from the library build.
- Keep behavior consistent across
tree,text, andtablemodes. - Keep browser-only logic guarded so SSR consumers do not break.
- Do not hand-edit generated output:
dist/,coverage/,gh-dist/,*.tgz,tsconfig.tsbuildinfo. - If a change affects public behavior, update
README.md. - Add or update unit tests for risky behavior changes.
- Use
pnpmcommands frompackage.json. - Prefer MCP Context7 first for third-party docs and exact API usage for Vue, Vite, Vitest, ESLint, and ecosystem packages. If Context7 is required for an exact API decision and is unavailable, stop and say so instead of guessing.
Validation defaults:
pnpm lintpnpm testpnpm type-checkpnpm buildfor packaging or public API changes
Source: bestkolobok/vue3-jsoneditor — distributed by TomeVault.