@irsyadulibad/servermon 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin.js +11 -0
  2. package/package.json +2 -2
package/bin.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Server Monitor — npm-compatible binary wrapper.
4
+ * Bun runs .ts files natively, but npm requires bin entries to be .js.
5
+ */
6
+ import { main } from "./src/cli";
7
+
8
+ main().catch((err) => {
9
+ console.error("❌ Fatal error:", err?.message ?? err);
10
+ process.exit(1);
11
+ });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@irsyadulibad/servermon",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Lightweight server monitoring daemon — collects system metrics and sends structured reports to Telegram. Built with Bun + TypeScript.",
5
5
  "module": "index.ts",
6
6
  "type": "module",
7
7
  "bin": {
8
- "servermon": "./cli.ts"
8
+ "servermon": "bin.js"
9
9
  },
10
10
  "private": false,
11
11
  "publishConfig": {