From 5953d2920c1a8e7dd74b74564e481970e6fb9c95 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Tue, 8 Sep 2026 13:03:55 +0800 Subject: [PATCH] docs(plugin-manager): give the README installer example its colour option --- packages/boot/plugin-manager/README.i18n.yaml | 4 ++-- packages/boot/plugin-manager/README.md | 1 + packages/boot/plugin-manager/README.zh.md | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/boot/plugin-manager/README.i18n.yaml b/packages/boot/plugin-manager/README.i18n.yaml index 6276a3dcab..77f05262d1 100644 --- a/packages/boot/plugin-manager/README.i18n.yaml +++ b/packages/boot/plugin-manager/README.i18n.yaml @@ -2,5 +2,5 @@ # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with: # pnpm run verify-translation-pairing --write packages/boot/plugin-manager/README.md -README.md: 0666043f69619fab042228d5f298d63eeeada87b -README.zh.md: 2c659f51e41b366a793f36ab8865bea2a68e0b65 +README.md: e1fcb8ad8b2db2b676963d9e55a4acb50f17719c +README.zh.md: 5411496d1e7975542f95a0632e6b67a45e21430c diff --git a/packages/boot/plugin-manager/README.md b/packages/boot/plugin-manager/README.md index 0666043f69..e1fcb8ad8b 100644 --- a/packages/boot/plugin-manager/README.md +++ b/packages/boot/plugin-manager/README.md @@ -41,6 +41,7 @@ const installer = new PluginInstaller({ loadProfile: () => loadProfile('dsh', 'web', installAnchor, undefined, { userLayer: false }), config: { pnpmCommand: 'pnpm', installTimeoutMs: 600_000, probeTimeoutMs: 20_000, installLogTailBytes: 16_384 }, installLog: (chunk) => process.stdout.write(chunk.text), + color: process.stdout.isTTY, }) const outcome = await installer.add('@acme/dsh-sql-tool') console.log(outcome.installed, outcome.removed) diff --git a/packages/boot/plugin-manager/README.zh.md b/packages/boot/plugin-manager/README.zh.md index 2c659f51e4..5411496d1e 100644 --- a/packages/boot/plugin-manager/README.zh.md +++ b/packages/boot/plugin-manager/README.zh.md @@ -41,6 +41,7 @@ const installer = new PluginInstaller({ loadProfile: () => loadProfile('dsh', 'web', installAnchor, undefined, { userLayer: false }), config: { pnpmCommand: 'pnpm', installTimeoutMs: 600_000, probeTimeoutMs: 20_000, installLogTailBytes: 16_384 }, installLog: (chunk) => process.stdout.write(chunk.text), + color: process.stdout.isTTY, }) const outcome = await installer.add('@acme/dsh-sql-tool') console.log(outcome.installed, outcome.removed)