circuit-bricks
Version:
A modular, Lego-style SVG circuit component system for React (ALPHA - Not for production use)
99 lines (98 loc) • 2.8 kB
JSON
{
"name": "circuit-bricks",
"version": "0.1.4",
"description": "A modular, Lego-style SVG circuit component system for React (ALPHA - Not for production use)",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./llm": {
"types": "./dist/llm/index.d.ts",
"import": "./dist/llm.mjs",
"require": "./dist/llm.cjs"
},
"./registry-server": {
"types": "./dist/registry/server.d.ts",
"import": "./dist/registry-server.mjs",
"require": "./dist/registry-server.cjs"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "rolldown -c && node scripts/fix-server-chunks.js",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
"build:all": "npm run build && npm run build:types",
"build:analyze": "rolldown -c --analyze",
"dev": "rolldown -c -w",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:ssr": "vitest run tests/ssr.test.tsx",
"test:mobile": "vitest run tests/touch.test.tsx tests/responsive.test.tsx",
"test:performance": "vitest run tests/performance.test.tsx",
"start:test-app": "cd test-app && npm run dev",
"test:app:test": "cd test-app && npm test",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run typecheck && npm test && npm run build:all",
"lint": "eslint src --ext .ts,.tsx",
"security-check": "npm audit --production"
},
"keywords": [
"circuit",
"svg",
"react",
"typescript",
"electrical",
"diagram",
"component-library"
],
"author": "Sphere Labs",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/maker-or/circuit-bricks.git"
},
"bugs": {
"url": "https://github.com/maker-or/circuit-bricks.git/issues"
},
"homepage": "https://github.com/maker-or/circuit-bricks.git#readme",
"engines": {
"node": ">=16.0.0"
},
"peerDependencies": {
"react": "^19.1.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.15.18",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.0",
"@vitejs/plugin-react": "^4.4.1",
"@vitest/coverage-v8": "^3.1.3",
"glob": "^11.0.2",
"jsdom": "^26.1.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rolldown": "^1.0.0-beta.8",
"typescript": "^5.8.3",
"vitest": "^3.1.3"
},
"directories": {
"test": "tests"
},
"dependencies": {
"zod": "^3.25.7"
}
}