lhwapi-mcp-server 1.0.2 → 1.0.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.
package/dist/cli.cjs ADDED
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ const { spawn } = require("child_process");
3
+ const path = require("path");
4
+
5
+ const args = process.argv.slice(2);
6
+ const child = spawn("node", [path.join(__dirname, "index.js"), ...args], {
7
+ stdio: "inherit",
8
+ shell: true,
9
+ });
10
+
11
+ child.on("exit", (code) => {
12
+ process.exit(code || 0);
13
+ });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "lhwapi-mcp-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "MCP server for API documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "lhwapi-mcp-server": "node dist/index.js"
9
+ "lhwapi-mcp-server": "./dist/cli.cjs"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "tsc",
package/dist/cli.js DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawn } from "child_process";
3
- import { fileURLToPath } from "url";
4
- import { dirname, join } from "path";
5
-
6
- const __filename = fileURLToPath(import.meta.url);
7
- const __dirname = dirname(__filename);
8
-
9
- const args = process.argv.slice(2);
10
- const child = spawn("node", [join(__dirname, "dist", "index.js"), ...args], {
11
- stdio: "inherit",
12
- shell: true,
13
- });
14
-
15
- child.on("exit", (code) => {
16
- process.exit(code || 0);
17
- });