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.
This commit is contained in:
42
package.json
42
package.json
@@ -3,15 +3,27 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"description": "A Node.js module for word order independent string similarity search",
|
"description": "A Node.js module for word order independent string similarity search",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=14.0.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "node-gyp rebuild",
|
"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": [
|
"keywords": [
|
||||||
"search",
|
"search",
|
||||||
"similarity",
|
"similarity",
|
||||||
"string",
|
"string",
|
||||||
"fuzzy"
|
"fuzzy",
|
||||||
|
"native",
|
||||||
|
"addon",
|
||||||
|
"c++",
|
||||||
|
"performance"
|
||||||
],
|
],
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -19,5 +31,29 @@
|
|||||||
"nan": "^2.22.2",
|
"nan": "^2.22.2",
|
||||||
"node-addon-api": "^6.0.0"
|
"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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user