Skip to content

Commit 47d6f59

Browse files
committed
refactor: remove std-env from dependencies
1 parent 252de51 commit 47d6f59

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"scripts": {
1212
"start": "jiti ./index.ts",
1313
"spinner": "jiti ./spinner.ts",
14-
"spinner-ci": "npx cross-env GITHUB_ACTIONS=\"true\" jiti ./spinner-ci.ts"
14+
"spinner-ci": "npx cross-env CI=\"true\" jiti ./spinner-ci.ts"
1515
},
1616
"devDependencies": {
1717
"jiti": "^1.17.0"

packages/prompts/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
"dependencies": {
5656
"@clack/core": "workspace:*",
5757
"picocolors": "^1.0.0",
58-
"sisteransi": "^1.0.5",
59-
"std-env": "^3.4.3"
58+
"sisteransi": "^1.0.5"
6059
},
6160
"devDependencies": {
6261
"is-unicode-supported": "^1.3.0"

packages/prompts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
import isUnicodeSupported from 'is-unicode-supported';
1414
import color from 'picocolors';
1515
import { cursor, erase } from 'sisteransi';
16-
import { isCI } from 'std-env';
1716

1817
export { isCancel } from '@clack/core';
1918

@@ -640,6 +639,7 @@ export const log = {
640639
export const spinner = () => {
641640
const frames = unicode ? ['◒', '◐', '◓', '◑'] : ['•', 'o', 'O', '0'];
642641
const delay = unicode ? 80 : 120;
642+
const isCI = process.env.CI === 'true';
643643

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

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)