@hakit/core
Version:
A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.
121 lines (120 loc) • 3.83 kB
JSON
{
"name": "@hakit/core",
"version": "5.1.1",
"private": false,
"type": "module",
"keywords": [
"react",
"homeassistant",
"home-assistant",
"home-automation",
"socket",
"component",
"library",
"api",
"ha-component-kit",
"@hakit/core",
"@hakit/components",
"dashboard",
"smarthome",
"custom"
],
"bin": {
"hakit-sync-types": "./dist/sync/cli/cli.js"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"description": "A collection of React hooks and helpers for Home Assistant to easily communicate with the Home Assistant WebSocket API.",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/es/index.js",
"require": "./dist/cjs/index.js"
},
"./sync": {
"types": "./dist/sync/node/types/index.d.ts",
"import": "./dist/sync/node/index.cjs",
"require": "./dist/sync/node/index.cjs"
}
},
"author": "Shannon Hochkins <mail@shannonhochkins.com>",
"license": "SEE LICENSE IN LICENSE.md",
"files": [
"dist",
"package.json",
"README.md",
"LICENSE.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/shannonhochkins/ha-component-kit",
"directory": "packages/core"
},
"bugs": {
"url": "https://github.com/shannonhochkins/ha-component-kit/issues"
},
"homepage": "https://shannonhochkins.github.io/ha-component-kit#readme",
"funding": "https://github.com/shannonhochkins/ha-component-kit?sponsor=1",
"scripts": {
"dev": "vite",
"prebuild": "rm -rf ./dist",
"postbuild": "npm run prettier",
"build": "npm run sync-locales && npm run sync-ha-user-types && npm run build:sync-script-cli && npm run build:sync-ha-types && npm run build:core",
"build:core": "NODE_ENV=production vite build",
"build:sync-script": "NODE_ENV=production vite --config ./scripts/sync-user-types/vite-node.config.ts build",
"build:sync-script-cli": "tsup",
"build:sync-ha-types": "npx tsx ./scripts/sync-ha-types/index.ts",
"watch:build": "NODE_ENV=production vite build --watch",
"watch:build:sync-script": "NODE_ENV=production vite --config ./scripts/sync-user-types/vite-node.config.ts build --watch",
"dev:test:sync-script": "npm run build:sync-script && ts-node ./scripts/sync-user-types/test.ts",
"prettier": "prettier \"src/**/*.{ts,tsx}\" --write && git status",
"test": "NODE_ENV=test jest --rootDir=src",
"prerelease": "npm run build",
"release": "npm publish",
"release:canary": "npm run build && npm publish --tag canary",
"sync-ha-user-types": "npm run build:sync-script && node ./sync-ha-user-types.cjs",
"sync-locales": "npx tsx ./scripts/sync-locales/index.ts",
"clean": "rm -rf node_modules dist ./scripts/sync-ha-types/.ha-repo-cache"
},
"tsup": {
"entry": [
"scripts/sync-user-types/cli.ts"
],
"splitting": false,
"sourcemap": false,
"clean": true,
"format": "esm",
"dts": false,
"outDir": "dist/sync/cli"
},
"peerDependencies": {
"@emotion/react": ">=11.x",
"@emotion/styled": ">=11.x",
"@iconify/react": ">=5.x",
"home-assistant-js-websocket": ">=9.x.x",
"lodash": ">=4.x",
"prettier": ">=3.4.2",
"react": ">=19.x",
"react-dom": ">=19.x",
"use-debounce": ">=9.x",
"ws": ">=8.x.x",
"yargs": ">=17.x.x",
"zustand": "^5.0.5"
},
"devDependencies": {
"@liuli-util/vite-plugin-node": "^0.9.0",
"@swc/core": "^1.3.78",
"@types/ws": "^8.5.5",
"prettier": "^3.4.2",
"rollup-plugin-node-externals": "^7.1.2",
"simple-git": "^3.24.0",
"ts-morph": "^22.0.0",
"ts-node": "^10.9.2",
"tsup": "^8.0.2"
}
}