Hallo,
I've uploaded here a Node node-red-contrib-sds011-dust-sensor (node) - Node-RED and scorecard complains about missing Node-RED version.
package.json is
{
"name": "node-red-contrib-sds011-dust-sensor",
"version": "1.0.2",
"description": "Node-RED node to enable a communication with the SDS011 sensor which is connected via UART/serial connection.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor.git"
},
"dependencies": {
"serialport": "^9.2.0"
},
"keywords": [
"sds011",
"pm",
"pm2.5",
"pm10",
"sensor",
"air",
"smog",
"particulates",
"node-red",
"airquality",
"dust"
],
"contributors": [
"Ikhaya Inkomishi",
"JsBergbau"
],
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor/issues"
},
"node-red": {
"version": ">=2.0.0",
"nodes": {
"SDS011": "sds011-node/sds011-node.js"
}
},
"engines": {
"node": ">=12.0.0"
},
"homepage": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor#readme",
"author": "Ikhaya Inkomishi"
}
According to Packaging : Node-RED "version" must be put into the node-red section.
Also there is a complain about missing engine section, but it is also present.
Can you help me to fix my package json so score card doesn't complain about these two?