Skip to content

Remove dependencies nothing imports and stale RSS .gitignore entries - #1987

Closed
marcleblanc2 wants to merge 1 commit into
mainfrom
marc/cleanup/unused-deps
Closed

marcleblanc2 wants to merge 1 commit into
mainfrom
marc/cleanup/unused-deps

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Summary

pnpm remove of every package in package.json with no import in src/, dev/, or any config file:

@docsearch/react (only its CSS is vendored in src/components/search/docsearch/), @mdx-js/mdx, date-fns, fast-glob, feed, prism-react-renderer, react-highlight-words + @types/react-highlight-words, react-syntax-highlighter, rehype-toc, simple-functional-loader, dotenv.

Kept on purpose: shiki (peer dependency of rehype-pretty-code) and sharp (Next.js image optimisation).

Also drops the .gitignore entries for public/changelog.rss and public/technical-changelog.rss. Nothing generates them any more: the feed comes from sourcegraph.com (src/data/constants.ts) and src/proxy.ts redirects the old paths to it.

Test plan

  • pnpm run build exit 0
  • npx tsc --noEmit clean; pnpm run lint 0 errors
  • pnpm start and requested /, /cody/quickstart, /api/versions: all 200
  • Vercel preview build on this PR is the real proof

None of these packages are imported by src/, dev/, or any config file:
@docsearch/react (only its CSS is vendored), @mdx-js/mdx, date-fns,
fast-glob, feed, prism-react-renderer, react-highlight-words and its
@types, react-syntax-highlighter, rehype-toc, simple-functional-loader,
dotenv.

public/changelog.rss and public/technical-changelog.rss are no longer
generated here: the feed is served from sourcegraph.com (see
src/data/constants.ts) and src/proxy.ts redirects to it.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0ad56-bd79-73ce-bc8e-a5405d0c11f2
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 17, 2026 3:27am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Spell check found 1 issue(s) in this PR

Only findings on lines added by this PR, and in its title and description, are shown.

Pull request description

  • line 7, column 95
    • optimisationoptimization

Please correct the spelling, or add words which are correct to cspell-allow-list.txt.

Run npx cspell@10 --no-progress --dot '**/*' locally to check the full repository.

@marcleblanc2

Copy link
Copy Markdown
Contributor Author

Folded into #1986 as commit 333766c.

@marcleblanc2
marcleblanc2 deleted the marc/cleanup/unused-deps branch September 17, 2026 06:56
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