@types/node was not declared. It was installed only because mqtt's @types/readable-stream and @types/ws depend on "@types/node": "*", and it resolved to 26.6.2, so an API newer than the "engines" floor passed the type check and the build depended on another package's dependency list. @types/node ^18.19.130 is now a devDependency (undici-types follows, 8.9.0 -> 5.26.5). A call to process.loadEnvFile() (Node 20.12) in src/ now fails with TS2339. npm run check passes, the fixture compile with skipLibCheck off included, so mqtt's declarations hold against the Node 18 types. First run on the floor: npm test passes 24/24 on Node 18.20.8 and 20.20.2 as well as 24.21.0. No change to src/ or dist/. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
"name": "alex2node",
|
|
"version": "1.5.2",
|
|
"description": "A Node.js library for creating Alexa-compatible devices using MQTT, based on Alex2MQTT.",
|
|
"type": "commonjs",
|
|
"main": "./dist/cjs/index.js",
|
|
"module": "./dist/esm/index.js",
|
|
"types": "./dist/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"import": "./dist/esm/index.js",
|
|
"require": "./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",
|
|
"prepare": "npm run build",
|
|
"test": "node --test test/*.test.js test/*.test.mjs"
|
|
},
|
|
"keywords": [
|
|
"alexa",
|
|
"mqtt",
|
|
"smart-home",
|
|
"iot",
|
|
"home-automation",
|
|
"amazon-alexa",
|
|
"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"
|
|
]
|
|
}
|