UNPKG

@skillpet/circuit

Version:

Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components

85 lines (84 loc) 2.08 kB
{ "name": "@skillpet/circuit", "version": "0.6.5", "description": "Circuit diagram library — render electrical schematics from JSON, with interactive SVG, themes, and Vue/React components", "license": "SEE LICENSE IN LICENSE", "type": "module", "main": "./dist/index.cjs", "module": "./dist/circuit.esm.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/circuit.esm.js", "require": "./dist/index.cjs" }, "./vue": { "types": "./dist/vue/index.d.ts", "import": "./dist/vue/index.js" }, "./react": { "types": "./dist/react/index.d.ts", "import": "./dist/react/index.js" } }, "files": [ "dist/**/*.d.ts", "dist/circuit.bundle.js", "dist/circuit.bundle.min.js", "dist/circuit.esm.js", "dist/index.cjs", "dist/vue/index.js", "dist/react/index.js", "LICENSE" ], "sideEffects": false, "scripts": { "build": "tsc -p tsconfig.build.json", "clean": "rm -rf dist", "test": "vitest run", "check:exports": "node scripts/diff-py-ts-exports.mjs", "test:watch": "vitest", "demo": "tsx examples/quickstart.ts", "preview": "vite --config vite.preview.config.ts", "bundle": "node build/bundle.mjs", "prepublishOnly": "npm run build && npm run bundle" }, "engines": { "node": ">=18" }, "peerDependencies": { "vue": ">=3", "react": ">=17", "react-dom": ">=17" }, "peerDependenciesMeta": { "vue": { "optional": true }, "react": { "optional": true }, "react-dom": { "optional": true } }, "devDependencies": { "@resvg/resvg-js": "^2.6.2", "@types/katex": "^0.16.8", "@types/node": "^22.19.15", "@types/react": "^19.1.0", "@types/react-dom": "^19.1.0", "esbuild": "^0.27.4", "pixelmatch": "^7.1.0", "pngjs": "^7.0.0", "tsx": "^4.19.3", "typescript": "^5.7.3", "vite": "^6.4.1", "vitest": "^3.0.9", "vue": "^3.5.0" }, "dependencies": { "katex": "^0.16.44" } }