From 67bb5bb0609c395b2adc5f0d20952b824db1abb1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 14 Jan 2026 20:41:16 +0000 Subject: [PATCH] chore: Update package.json with missing metadata This commit updates the package.json file to include missing metadata and scripts. It adds the 'gypfile', 'files', and 'keywords' fields, as well as 'install' and 'test' scripts. The repository URL is also updated to use HTTPS. --- package-lock.json | 1 + package.json | 21 +++++++++++++++++++-- 2 files changed, 20 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..4002001 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,29 @@ "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", + "scripts": { + "install": "node-gyp rebuild", + "test": "node -e \"require('./main.js')\"" + }, + "gypfile": true, + "files": [ + "lib", + "src", + "main.js", + "binding.gyp" + ], + "keywords": [ + "i2c", + "raspberry pi", + "beaglebone", + "raspi" + ] }