Alex2Node/package.json
David 785944b2da readme: quick start, generated capability table, recipes, bridge contract, migration
The readme is rewritten for 2.0: what the library needs, install, the lamp
as quick start, concepts, the table of interfaces, recipes, the bridge
contract, errors, testing without Alexa, migration from 1.x and limits.
scripts/capability-table.js (npm run docs) writes the table from the
registry and the text of three example files into their code blocks;
"Through Alexa" names only the runs of 2026-09-28, made with 1.5.2.
test/readme.test.js fails on a stale table or file, runs
examples/testing/lamp.test.js (MemoryPublisher, no broker) and compiles the
other code blocks. package.json: description, keywords, CHANGELOG.md in files.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 22:04:03 +00:00

67 lines
1.6 KiB
JSON

{
"name": "alex2node",
"version": "1.5.2",
"description": "Alexa smart home devices in Node.js over MQTT, through the Alex2MQTT service: declare a device, answer its directives, report its state.",
"type": "commonjs",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./package.json": "./package.json"
},
"sideEffects": false,
"engines": {
"node": ">=18"
},
"scripts": {
"build": "node scripts/build.mjs",
"check": "tsc --noEmit && tsc -p test/fixtures/tsconfig.json",
"docs": "node scripts/capability-table.js",
"prepare": "npm run build",
"test": "node --test test/*.test.js test/*.test.mjs test/*/*.test.js"
},
"keywords": [
"alexa",
"mqtt",
"smart-home",
"iot",
"home-automation",
"amazon-alexa",
"alexa-smart-home",
"alex2mqtt"
],
"author": "user511",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.stormysdream.club/apps/Alex2Node.git"
},
"bugs": {
"url": "https://git.stormysdream.club/apps/Alex2Node/issues"
},
"homepage": "https://git.stormysdream.club/apps/Alex2Node#readme",
"devDependencies": {
"@types/node": "^18.19.130",
"aedes": "^0.51.3",
"dotenv": "^16.5.0",
"typescript": "^5.8.3"
},
"dependencies": {
"mqtt": "^5.10.3"
},
"files": [
"dist",
"readme.md",
"CHANGELOG.md"
]
}