UNPKG

@zubridge/electron

Version:

A streamlined state management library for Electron applications using Zustand.

117 lines 2.83 kB
{ "name": "@zubridge/electron", "version": "1.3.2", "description": "A streamlined state management library for Electron applications using Zustand.", "author": "Sam Maister <goosewobbler@protonmail.com>", "homepage": "https://github.com/goosewobbler/zubridge/tree/main/packages/electron", "license": "MIT", "type": "module", "main": "./dist/cjs/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/goosewobbler/zubridge.git" }, "keywords": [ "zustand", "electron", "state-management", "redux" ], "exports": { ".": [ { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } }, "./dist/index.cjs" ], "./main": [ { "import": { "types": "./dist/main.d.ts", "default": "./dist/main.js" }, "require": { "types": "./dist/main.d.cts", "default": "./dist/main.cjs" } }, "./dist/main.cjs" ], "./preload": [ { "import": { "types": "./dist/preload.d.ts", "default": "./dist/preload.js" }, "require": { "types": "./dist/preload.d.cts", "default": "./dist/preload.cjs" } }, "./dist/preload.cjs" ] }, "peerDependencies": { "electron": ">=12", "zustand": ">=5.0.0", "redux": ">=4.0.0" }, "peerDependenciesMeta": { "electron": { "optional": false }, "zustand": { "optional": false }, "redux": { "optional": true } }, "devDependencies": { "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/node": "^22.14.0", "@types/shelljs": "^0.8.15", "@vitest/coverage-v8": "^3.0.5", "jsdom": "^26.0.0", "react": "^19.0.0", "redux": "^5.0.1", "rollup": "^4.34.6", "shelljs": "^0.9.1", "shx": "^0.4.0", "tsx": "^4.19.2", "typescript": "^5.7.3", "vitest": "^3.0.5" }, "files": [ "dist/*", "docs/*", "main/*", "preload/*", "README.md" ], "dependencies": { "zustand": "^5.0.3", "@zubridge/types": "1.2.1" }, "scripts": { "clean": "pnpm clean:output && pnpm dlx shx rm -rf ./node_modules pnpm-lock.yaml", "clean:output": "pnpm dlx shx rm -rf ./dist", "clean:cache": "shx rm -rf .turbo", "prebuild": "pnpm clean:output", "build": "tsx ./scripts/build.ts", "release": "pnpm pack && pnpm publish", "test:unit": "vitest --coverage --watch=false", "test:dev": "vitest --coverage", "typecheck": "tsc --noEmi" } }