es-tooling / ecosystem-cleanup

A place to keep track of ongoing efforts to clean up the JS ecosystem
386 stars 2 forks source link

Replace `is-ci` with `ci-info`.isCI #128

Open TheDevMinerTV opened 3 weeks ago

TheDevMinerTV commented 3 weeks ago

is-ci is literally just an export wrapper for ci-info's isCI field, so we can just replace it everywhere we see it. That'd save 3KB and 2 HTTP roundtrips during installation.

TheDevMinerTV commented 3 weeks ago

Replaced it in Cypress: https://github.com/cypress-io/cypress/pull/30465 Edit: got merged 🎉

TheDevMinerTV commented 3 days ago

Replaced it in html-minifier-terser: https://github.com/terser/html-minifier-terser/pull/189

Fuzzyma commented 3 days ago

Here is a list of the top 20 packages using is-ci according to npm.js (which does not contain all dependents because it only allows the first 396 to be crawled):

Stats are downloads last-month.

# Downloads Traffic Package
1 5.25M 11.28 GB lerna
2 5.15M 11.08 GB @lerna/create
3 2.08M 4.47 GB update-notifier-cjs
4 2.07M 4.46 GB yorkie
5 2.03M 4.37 GB @lerna/command
6 1.43M 3.08 GB builder-util
7 1.43M 3.07 GB yurnalist
8 1.39M 2.99 GB app-builder-lib
9 1.32M 2.85 GB electron-builder
10 1.29M 2.77 GB npm-check
11 908.76k 1.95 GB testcafe
12 709.21k 1.52 GB @aws-amplify/platform-core
13 612.93k 1.32 GB @lerna/legacy-package-management
14 234.66k 504.53 MB @aws-amplify/graphql-api-construct
15 224.21k 482.05 MB @aws-amplify/data-construct
16 214.74k 461.70 MB @aws-amplify/backend-cli
17 174.72k 375.64 MB is-ci-cli
18 106.89k 229.81 MB hint
19 102.37k 220.10 MB @hint/connector-puppeteer
20 94.58k 203.35 MB @prisma/sdk
43081j commented 3 days ago

update-notifier-cjs looks like it has these we can replace:

Could be a good couple of PRs!