From 8fb1a26cf86760b7209be5af8d4cf0a87e5ab026 Mon Sep 17 00:00:00 2001 From: Chapman Pendery <35637443+cpendery@users.noreply.github.com> Date: Sun, 10 Mar 2024 23:19:29 -0700 Subject: [PATCH] build: update xterm to use @xterm/headless (#23) Signed-off-by: Chapman Pendery --- package-lock.json | 13 +++++++------ package.json | 6 +++--- src/terminal/locator.ts | 2 +- src/terminal/term.ts | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6347eee..d63bbe7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@homebridge/node-pty-prebuilt-multiarch": "^0.11.12", "@swc/core": "^1.3.102", + "@xterm/headless": "^5.3.0", "chalk": "^5.3.0", "color-convert": "^2.0.1", "commander": "^11.1.0", @@ -20,8 +21,7 @@ "pretty-ms": "^8.0.0", "proper-lockfile": "^4.1.2", "which": "^4.0.0", - "workerpool": "^9.1.0", - "xterm-headless": "^5.3.0" + "workerpool": "^9.1.0" }, "bin": { "tui-test": "index.js" @@ -1303,6 +1303,11 @@ "dev": true, "license": "ISC" }, + "node_modules/@xterm/headless": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@xterm/headless/-/headless-5.4.0.tgz", + "integrity": "sha512-CrFsRbkdGe4w8RExNPuXCceJ71ZBPHNJSM4pIbB31ioJj4Bgx51xjc6825m9Ftqfy3Bc9JpHhC8zeFvFeGx9Hg==" + }, "node_modules/acorn": { "version": "8.11.2", "dev": true, @@ -4432,10 +4437,6 @@ "version": "1.0.2", "license": "ISC" }, - "node_modules/xterm-headless": { - "version": "5.3.0", - "license": "MIT" - }, "node_modules/y18n": { "version": "5.0.8", "dev": true, diff --git a/package.json b/package.json index 2a5e4d1..ea6a4a6 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,11 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/microsoft/tuitest.git" + "url": "git+https://github.com/microsoft/tui-test.git" }, "author": "Microsoft Corporation", "license": "MIT", - "homepage": "https://github.com/microsoft/tuitest#readme", + "homepage": "https://github.com/microsoft/tui-test#readme", "files": [ "lib/**", "index.js", @@ -44,7 +44,7 @@ "proper-lockfile": "^4.1.2", "which": "^4.0.0", "workerpool": "^9.1.0", - "xterm-headless": "^5.3.0" + "@xterm/headless": "^5.3.0" }, "devDependencies": { "@commitlint/cli": "^18.4.4", diff --git a/src/terminal/locator.ts b/src/terminal/locator.ts index 2ef1cda..d477ac6 100644 --- a/src/terminal/locator.ts +++ b/src/terminal/locator.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { IBufferCell, Terminal as XTerminal } from "xterm-headless"; +import { IBufferCell, Terminal as XTerminal } from "@xterm/headless"; import ms from "pretty-ms"; import { poll } from "../utils/poll.js"; import { Terminal } from "./term.js"; diff --git a/src/terminal/term.ts b/src/terminal/term.ts index ed3564e..47bb78a 100644 --- a/src/terminal/term.ts +++ b/src/terminal/term.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import pty, { IPty, IEvent } from "@homebridge/node-pty-prebuilt-multiarch"; -import xterm from "xterm-headless"; +import xterm from "@xterm/headless"; import process from "node:process"; import { EventEmitter } from "node:events";