From 6b7f0420eb89deb00ad493ffa7e5e62e562cb835 Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Wed, 1 Apr 2026 18:25:57 +0200 Subject: [PATCH] perf: migrate to tinyclip from clipboardy --- packages/cli-next/package.json | 4 ++-- packages/cli-next/src/commands/run.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/cli-next/package.json b/packages/cli-next/package.json index e68108ce..9c7a9259 100644 --- a/packages/cli-next/package.json +++ b/packages/cli-next/package.json @@ -19,7 +19,6 @@ "archiver": "^5.1.0", "chalk": "^4.1.0", "cli-ux": "^5.5.1", - "clipboardy": "^2.3.0", "cpx2": "7.0.1", "cross-spawn": "^7.0.3", "debug": "^4.2.0", @@ -29,6 +28,7 @@ "http-proxy-middleware": "^3.0.3", "strip-ansi": "^6.0.0", "tar": "^6.1.0", + "tinyclip": "^0.1.12", "tslib": "^1.14.1", "typescript": "^5.4.5" }, @@ -76,7 +76,7 @@ "which": "^2.0.2" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.4.0" }, "files": [ "/bin", diff --git a/packages/cli-next/src/commands/run.ts b/packages/cli-next/src/commands/run.ts index 80e51164..9ae18c34 100644 --- a/packages/cli-next/src/commands/run.ts +++ b/packages/cli-next/src/commands/run.ts @@ -1,6 +1,6 @@ import {flags as commandFlags} from '@oclif/command'; import _debug from 'debug'; -import clipboardy from 'clipboardy'; +import { writeText } from 'tinyclip'; import chalk from 'chalk'; import AirtableCommand from '../helpers/airtable_command'; @@ -297,7 +297,7 @@ export default class Run extends AirtableCommand { try { await Promise.race([ - clipboardy.write(`https://localhost:${secureServerPort}`), + writeText(`https://localhost:${secureServerPort}`), appConfigModifiedPromise, ]); this.log(`https://localhost:${secureServerPort} has been copied to your clipboard`);