Skip to content

Commit

Permalink
fix: remove unused code and dependencies (#7007)
Browse files Browse the repository at this point in the history
* fix: remove unused code and dependencies

* chore: remove heavy test:affected

This is built into vitest now: https://vitest.dev/guide/cli#changed.
  • Loading branch information
serhalp authored Jan 21, 2025
1 parent badfe15 commit 3a46e8f
Show file tree
Hide file tree
Showing 22 changed files with 0 additions and 1,740 deletions.
694 changes: 0 additions & 694 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"test:dev:vitest": "vitest run tests/unit/ && vitest run tests/integration",
"test:ci:vitest:unit": "vitest run --coverage tests/unit/",
"test:ci:vitest:integration": "vitest run --coverage tests/integration/",
"test:affected": "node ./tools/affected-test.js",
"e2e": "node ./tools/e2e/run.js",
"docs": "node ./site/scripts/docs.mjs",
"watch": "c8 --reporter=lcov vitest --watch",
Expand Down Expand Up @@ -86,7 +85,6 @@
"@octokit/rest": "20.1.1",
"@opentelemetry/api": "1.8.0",
"ansi-escapes": "7.0.0",
"ansi-styles": "6.2.1",
"ansi-to-html": "0.7.2",
"ascii-table": "0.0.9",
"backoff": "2.5.0",
Expand All @@ -98,7 +96,6 @@
"clean-deep": "3.4.0",
"commander": "10.0.1",
"comment-json": "4.2.5",
"concordance": "5.0.4",
"configstore": "6.0.0",
"content-type": "1.0.5",
"cookie": "0.7.2",
Expand Down Expand Up @@ -150,7 +147,6 @@
"netlify": "13.2.1",
"netlify-redirector": "0.5.0",
"node-fetch": "3.3.2",
"node-version-alias": "3.4.1",
"ora": "8.1.1",
"p-filter": "4.1.0",
"p-map": "7.0.3",
Expand Down Expand Up @@ -203,17 +199,13 @@
"cheerio": "1.0.0",
"eslint-plugin-sort-destructure-keys": "2.0.0",
"eslint-plugin-workspace": "file:./tools/lint-rules",
"fast-glob": "3.3.3",
"form-data": "4.0.1",
"fs-extra": "11.2.0",
"graphviz": "0.0.9",
"husky": "8.0.3",
"is-ci": "3.0.1",
"mock-fs": "5.4.1",
"nock": "13.5.6",
"p-timeout": "6.1.4",
"serialize-javascript": "6.0.2",
"sinon": "18.0.1",
"strip-ansi": "7.1.0",
"temp-dir": "3.0.0",
"tree-kill": "1.2.2",
Expand Down
1 change: 0 additions & 1 deletion src/commands/blobs/index.ts

This file was deleted.

36 changes: 0 additions & 36 deletions src/utils/addons/compare.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/utils/addons/diffs/index.ts

This file was deleted.

109 changes: 0 additions & 109 deletions src/utils/addons/diffs/options.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/utils/addons/prepare.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { APIError, error } from '../command-helpers.js'

export const ADDON_VALIDATION = {
EXISTS: 'EXISTS',
NOT_EXISTS: 'NOT_EXISTS',
}

// @ts-expect-error TS(7031) FIXME: Binding element 'addonName' implicitly has an 'any... Remove this comment to see the full error message
export const getCurrentAddon = ({ addonName, addons }) => addons.find((addon) => addon.service_slug === addonName)

Expand Down
98 changes: 0 additions & 98 deletions src/utils/addons/prompts.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/utils/addons/validation.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/utils/init/node-version.ts

This file was deleted.

Loading

9 comments on commit 3a46e8f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ“Š Benchmark results

  • Dependency count: 1,179
  • Package size: 315 MB
  • Number of ts-expect-error directives: 805

Please sign in to comment.