Skip to content

chore: replace is-ci with native process.env.CI check#90

Open
roli-lpci wants to merge 2 commits intotldraw:mainfrom
roli-lpci:chore/remove-is-ci
Open

chore: replace is-ci with native process.env.CI check#90
roli-lpci wants to merge 2 commits intotldraw:mainfrom
roli-lpci:chore/remove-is-ci

Conversation

@roli-lpci
Copy link

Summary

  • Replace is-ci package with native process.env.CI check
  • Remove is-ci and @types/is-ci from devDependencies
  • The CI environment variable is set by all major CI providers (GitHub Actions, GitLab CI, CircleCI, Travis, etc.)

Changes

  • scripts/build-api.tsimport isCI from 'is-ci'const isCI = !!process.env.CI
  • package.json — removed is-ci and @types/is-ci from devDependencies

Testing

  • Build script behavior is unchanged: process.env.CI is truthy in CI environments (same detection as is-ci)
  • Dependency reduction: -3 packages (is-ci, @types/is-ci, ci-info transitive)

Context: The e18e community tracks this pattern at ecosystem-issues#128is-ci is a thin wrapper around ci-info.isCI, which itself checks process.env.CI.

Replace the `is-ci` package with a direct `process.env.CI` check.
The `CI` environment variable is set by GitHub Actions, GitLab CI,
CircleCI, Travis, and all major CI providers.

- Remove `is-ci` from devDependencies
- Remove `@types/is-ci` from devDependencies
- Replace import with `const isCI = !!process.env.CI`

Dependency reduction: -3 packages (is-ci + @types/is-ci + ci-info transitive)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 26, 2026

@roli-lpci is attempting to deploy a commit to the tldraw Team on Vercel.

A member of the Team first needs to authorize it.

Use strict equality check instead of double-bang coercion to avoid
treating CI=false as truthy (non-empty string).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant