mcp-server-classpass 0.1.0 → 0.2.0
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/package.json +1 -1
- package/postinstall.js +2 -1
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -157,8 +157,9 @@ async function installBinary() {
|
|
|
157
157
|
// extract only the binary into npm directory (archive contains binary at root)
|
|
158
158
|
const tmpFile = path.join(os.tmpdir(), `${REPO}-${Date.now()}.tar.gz`);
|
|
159
159
|
fs.writeFileSync(tmpFile, tarGz);
|
|
160
|
+
// stdout stays untouched: it carries the protocol when index.js installs on first run of a stdio server.
|
|
160
161
|
const tarRes = spawnSync("tar", ["-xzf", tmpFile, "-C", outDir, exe], {
|
|
161
|
-
stdio: "
|
|
162
|
+
stdio: ["ignore", 2, 2],
|
|
162
163
|
});
|
|
163
164
|
if (tarRes.status !== 0) {
|
|
164
165
|
throw new Error("postinstall: failed to extract binary");
|