feat(packaging): Add npm packaging and installer: wrapper, postinstall downloader, publish workflow, and packaging files
This commit is contained in:
62
package.json
Normal file
62
package.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "@serve.zone/nupst",
|
||||
"version": "5.0.5",
|
||||
"description": "Network UPS Shutdown Tool - Monitor SNMP-enabled UPS devices and orchestrate graceful system shutdowns during power emergencies",
|
||||
"keywords": [
|
||||
"ups",
|
||||
"snmp",
|
||||
"power",
|
||||
"shutdown",
|
||||
"monitoring",
|
||||
"cyberpower",
|
||||
"apc",
|
||||
"eaton",
|
||||
"tripplite",
|
||||
"liebert",
|
||||
"vertiv",
|
||||
"battery",
|
||||
"backup"
|
||||
],
|
||||
"homepage": "https://code.foss.global/serve.zone/nupst",
|
||||
"bugs": {
|
||||
"url": "https://code.foss.global/serve.zone/nupst/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://code.foss.global/serve.zone/nupst.git"
|
||||
},
|
||||
"author": "Serve Zone",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"nupst": "./bin/nupst-wrapper.js"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/install-binary.js",
|
||||
"prepublishOnly": "echo 'Publishing NUPST binaries to npm...'",
|
||||
"test": "echo 'Tests are run with Deno: deno task test'"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"scripts/install-binary.js",
|
||||
"readme.md",
|
||||
"license",
|
||||
"changelog.md"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
},
|
||||
"os": [
|
||||
"darwin",
|
||||
"linux",
|
||||
"win32"
|
||||
],
|
||||
"cpu": [
|
||||
"x64",
|
||||
"arm64"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user