We build a separate build of Codex that only includes the TypeaheadSearch component and its dependencies, for use in the Vector search bar. Right now, we build that as a separate package in our repo, that has its own package.json, its own Vite config and everything else, and is published as a separate NPM package.
Instead, we should build the search-only build as part of the build process in the main codex package, by passing a different entry point to the build config (which will be much easier once T335323 is done). We should then publish these files as part of the codex package in NPM, and remove the separate codex-search package.
- A CJS codex-search build is added to the Codex package
- The codex-search package is removed from the Codex monorepo
- MediaWiki is migrated to use the new build (see T347342)
- The @wikimedia/codex-search package on NPM has been deprecated