mcd-mcp-app 0.0.2 → 0.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.
Files changed (2) hide show
  1. package/dist/server.js +2 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -428,7 +428,8 @@ registerAppTool(
428
428
  };
429
429
  }
430
430
  );
431
- var uiPath = process.env.NODE_ENV === "production" ? path.resolve(__dirname, "index.html") : path.resolve(__dirname, "dist", "index.html");
431
+ var isTs = import.meta.url.endsWith(".ts");
432
+ var uiPath = isTs ? path.resolve(__dirname, "dist", "index.html") : path.resolve(__dirname, "index.html");
432
433
  var uiContentCache = null;
433
434
  registerAppResource(
434
435
  server,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcd-mcp-app",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "author": "yongyang599",
6
6
  "license": "MIT",