Cleanup unused dependencies and src files - #1986
Open
marcleblanc2 wants to merge 2 commits into
Open
marcleblanc2 wants to merge 2 commits into
marcleblanc2 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Merged
marcleblanc2
marked this pull request as ready for review
September 17, 2026 03:37
marcleblanc2
enabled auto-merge (squash)
September 17, 2026 03:37
This comment has been minimized.
This comment has been minimized.
marcleblanc2
force-pushed
the
marc/cleanup/dead-src-code
branch
from
September 17, 2026 10:08
333766c to
cd1dfe4
Compare
PreCode.tsx was empty; ResourceEstimator.tsx was an older copy of resource-estimator/ResourceEstimator.tsx, which MdxComponents imports; DemoLayout, TopBanner, Globe and BugIcon have no importers. allCoreContent filtered on a `draft` frontmatter field that contentlayer.config.ts does not declare and no page sets, so the production and development branches did the same thing. Amp-Thread-ID: https://ampcode.com/threads/T-01a0ad56-bd79-73ce-bc8e-a5405d0c11f2 Co-authored-by: Amp <amp@ampcode.com>
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>
marcleblanc2
force-pushed
the
marc/cleanup/dead-src-code
branch
from
September 17, 2026 10:10
cd1dfe4 to
ee82523
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two independent cleanups, each its own commit.
Delete
src/files with no importersFound by grepping for import specifiers of every file under
src/:src/components/PreCode.tsx: empty file; the realPreCodeis exported fromPreCodeBlock.tsxsrc/components/ResourceEstimator.tsx: older duplicate;MdxComponents.tsximportsresource-estimator/ResourceEstimator.tsxsrc/components/DemoLayout.tsx: template leftover (YouTube tabs for "Text-to-Image", "Text-to-Speech", ...)src/components/TopBanner.tsx,src/components/icons/Globe.tsx,src/components/icons/BugIcon.tsxallCoreContentinsrc/utils/contentlayer.tsfiltered on adraftfrontmatter field thatcontentlayer.config.tsdoes not declare and that no.mdxfile sets, so its production and development branches were equivalent. Collapsed to one.Remove dependencies nothing imports and stale RSS
.gitignoreentriespnpm removeof every package inpackage.jsonwith no import insrc/,dev/, or any config file:@docsearch/react(only its CSS is vendored insrc/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 ofrehype-pretty-code) andsharp(Next.js image optimization).Also drops the
.gitignoreentries forpublic/changelog.rssandpublic/technical-changelog.rss. Nothing generates them any more: the feed comes from sourcegraph.com (src/data/constants.ts) andsrc/proxy.tsredirects the old paths to it.Verification
pnpm install --frozen-lockfile,npx tsc --noEmit,pnpm run lint(0 errors) on the combined branchpnpm run buildexit 0 andpnpm startserving/,/cody/quickstart,/api/versionswith 200, on each change separately before they were combined