Skip to content

Commit 5555d90

Browse files
committed
fix(create): replace cyan with blue in bundled prompts
The @clack/prompts dependency uses t.cyan which is not visible in some terminal themes. Replacing with t.blue ensures better visibility across different terminal configurations.
1 parent 03d57b4 commit 5555d90

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/create/tsdown.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,15 @@ export default defineConfig({
55
banner: `#!/usr/bin/env node`,
66
exports: true,
77
inlineOnly: false,
8+
plugins: [
9+
{
10+
name: 'replace-cyan-with-blue',
11+
transform (code, id) {
12+
if (id.includes('@clack/prompts/')) {
13+
return code.replace(/t.cyan/g, 't.blue')
14+
}
15+
return code
16+
},
17+
},
18+
],
819
})

0 commit comments

Comments
 (0)