From 091c258d4111733b37409d200ce7f57d12c20854 Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 27 Jun 2025 03:32:24 +0200 Subject: [PATCH] Update package.json to include Node.js engine requirement and enhance build scripts. Add new keywords for better package discoverability, define repository information, and specify supported operating systems and CPU architectures. Introduce devDependencies for node-gyp to streamline native module compilation. --- package.json | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 046b4e3..9b387f2 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,27 @@ "version": "1.0.2", "description": "A Node.js module for word order independent string similarity search", "main": "index.js", + "engines": { + "node": ">=14.0.0" + }, "scripts": { "install": "node-gyp rebuild", - "test": "node test.js" + "rebuild": "node-gyp rebuild", + "build": "node-gyp rebuild", + "clean": "node-gyp clean", + "configure": "node-gyp configure", + "test": "node test.js", + "pretest": "npm run build" }, "keywords": [ "search", "similarity", "string", - "fuzzy" + "fuzzy", + "native", + "addon", + "c++", + "performance" ], "author": "", "license": "MIT", @@ -19,5 +31,29 @@ "nan": "^2.22.2", "node-addon-api": "^6.0.0" }, - "gypfile": true + "devDependencies": { + "node-gyp": "^11.2.0" + }, + "repository": { + "type": "git", + "url": "" + }, + "files": [ + "index.js", + "binding.gyp", + "similarity_search.c", + "similarity_search.h", + "similarity_search_addon.cc", + "README.md" + ], + "gypfile": true, + "os": [ + "win32", + "darwin", + "linux" + ], + "cpu": [ + "x64", + "arm64" + ] }