Skip to content

Commit 52317d7

Browse files
committed
refactor: add ci-info dependency
1 parent a737c85 commit 52317d7

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/prompts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
},
5555
"dependencies": {
5656
"@clack/core": "workspace:*",
57+
"ci-info": "^3.8.0",
5758
"picocolors": "^1.0.0",
5859
"sisteransi": "^1.0.5"
5960
},

packages/prompts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
State,
1111
TextPrompt
1212
} from '@clack/core';
13+
import { isCI } from 'ci-info';
1314
import isUnicodeSupported from 'is-unicode-supported';
1415
import color from 'picocolors';
1516
import { cursor, erase } from 'sisteransi';
@@ -639,7 +640,6 @@ export const log = {
639640
export const spinner = () => {
640641
const frames = unicode ? ['◒', '◐', '◓', '◑'] : ['•', 'o', 'O', '0'];
641642
const delay = unicode ? 80 : 120;
642-
const isCI = process.env.GITHUB_ACTIONS === 'true';
643643

644644
let unblock: () => void;
645645
let loop: NodeJS.Timeout;

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)