From c1a351c600732f366ba4528c3af09840689c79f6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 13 Jan 2026 22:03:10 +0000 Subject: [PATCH] feat: Clean up and improve package.json - Adds keywords, homepage, and bugs fields to improve discoverability and provide more information to users. - Adds a contributors field to acknowledge contributions. - Updates the repository URL to use https. - Adds an install script to run node-gyp rebuild. - Adds a basic test script to ensure the module can be imported. --- package-lock.json | 1 + package.json | 26 ++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index eadec93..2fbd0f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "i2c", "version": "0.3.0", + "hasInstallScript": true, "license": "BSD-3-Clause-Attribution", "dependencies": { "bindings": "^1.5.0", diff --git a/package.json b/package.json index 4d40dc3..34199c7 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,34 @@ "author": "Kelly Korevec", "repository": { "type": "git", - "url": "http://github.com/korevec/node-i2c.git" + "url": "https://github.com/korevec/node-i2c.git" }, "license": "BSD-3-Clause-Attribution", "dependencies": { "bindings": "^1.5.0", "nan": "^2.24.0" }, - "engine": "node >= 18.0.0" + "engine": "node >= 18.0.0", + "keywords": [ + "i2c", + "raspberry pi", + "beaglebone", + "raspi" + ], + "homepage": "https://github.com/korevec/node-i2c", + "bugs": { + "url": "https://github.com/korevec/node-i2c/issues" + }, + "contributors": [ + { + "name": "alphacharlie" + }, + { + "name": "J-Cat" + } + ], + "scripts": { + "test": "node -e \"require('./main.js')\"", + "install": "node-gyp rebuild" + } }