[Other]: Add a PackageManager
component
#1018
Labels
pending review
Awaiting review by team members.
PackageManager
component
#1018
📋 Explain your issue
There are a lot of package-manager related instructions in the docs. For example, when a package needs to be installed we add tab like this:
The documentation for these is written manually, which results in a significant amount of boilerplate and inconsistency. For example, some sections do not include instructions for Deno or Bun, or both. Additionally, some parts instruct users to use
pnpm add
while others suggestpnpm install
for installing packages with Pnpm.Moreover, there is a lot of room for error due to wired Prettier behaviors.
I propose adding a component called
PackageManager
(or a similar name) that renders a tab with instructions for each package manager we want to support. The API could look like this:This approach ensures consistency and minimizes repetitive code.
Feel free to assign this to me if you’d like.
The text was updated successfully, but these errors were encountered: