Skip to content

Commit 83b6436

Browse files
committed
Convert to node-pty-prebuilt
1 parent 6038744 commit 83b6436

File tree

7 files changed

+446
-14
lines changed

7 files changed

+446
-14
lines changed

build/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
8181
const bootstrapForkPath = path.join(pkgsPath, "vscode", "out", "bootstrap-fork.js");
8282
const webOutputPath = path.join(pkgsPath, "web", "out");
8383
const browserAppOutputPath = path.join(pkgsPath, "app", "browser", "out");
84-
const nodePtyModule = path.join(pkgsPath, "protocol", "node_modules", "node-pty", "build", "Release", "pty.node");
84+
const nodePtyModule = path.join(pkgsPath, "protocol", "node_modules", "node-pty-prebuilt", "build", "Release", "pty.node");
8585
const spdlogModule = path.join(pkgsPath, "protocol", "node_modules", "spdlog", "build", "Release", "spdlog.node");
8686
let ripgrepPath = path.join(pkgsPath, "..", "lib", "vscode", "node_modules", "vscode-ripgrep", "bin", "rg");
8787
if (os.platform() === "win32") {

packages/protocol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"express": "^4.16.4",
66
"google-protobuf": "^3.6.1",
7-
"node-pty": "^0.8.1",
7+
"node-pty-prebuilt": "^0.7.6",
88
"spdlog": "^0.7.2",
99
"tslib": "^1.9.3",
1010
"ws": "^6.1.2"

packages/protocol/src/common/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class EvalHelper {
3434
// their locations.
3535
public modules = {
3636
spdlog: require("spdlog") as typeof import("spdlog"),
37-
pty: require("node-pty") as typeof import("node-pty"),
37+
pty: require("node-pty-prebuilt") as typeof import("node-pty-prebuilt"),
3838
};
3939

4040
/**

0 commit comments

Comments
 (0)