- Updated Jest configuration to support ESM and improve test coverage - Added comprehensive test files for helpers, index, context, and HASS integration - Configured coverage reporting and added new test scripts - Updated Jest resolver to handle module resolution for chalk and related packages - Introduced new test setup files for mocking and environment configuration
41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
"name": "@strandbrown/homeassistant-mcp",
|
|
"version": "0.1.0",
|
|
"description": "Model Context Protocol Server for Home Assistant",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "npx tsc",
|
|
"start": "node dist/index.js",
|
|
"dev": "tsx watch src/index.ts",
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs",
|
|
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --coverage",
|
|
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --config=jest.config.cjs --watch",
|
|
"lint": "eslint src --ext .ts",
|
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
"prepare": "npm run build",
|
|
"clean": "rimraf dist",
|
|
"types:check": "tsc --noEmit",
|
|
"types:install": "npm install --save-dev @types/node @types/jest"
|
|
},
|
|
"dependencies": {
|
|
"@digital-alchemy/core": "^24.11.4",
|
|
"@digital-alchemy/hass": "^24.11.4",
|
|
"ajv": "^8.17.1",
|
|
"dotenv": "^16.3.1",
|
|
"litemcp": "^0.7.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/ajv": "^0.0.5",
|
|
"@types/jest": "^28.1.8",
|
|
"@types/node": "^20.17.10",
|
|
"jest": "^28.1.3",
|
|
"semver": "^6.3.1",
|
|
"ts-jest": "^28.0.8",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2"
|
|
},
|
|
"author": "Jango Blockchained",
|
|
"license": "MIT"
|
|
} |