feat: add remark plugins for package-execute and package-run tabs #325
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.
Problem
The gill docs use the Fumadocs framework, which provides a
package-installplugin for showing install commands across different package managers. However, there was no equivalent plugin for package manager run commands (likenpx codama run jsornpm run build). This made it difficult to show users the correct commands for different package managers when executing CLI tools or running scripts.Summary of Changes
@gillsdk/remark-package-commandswith two Remark plugins:remarkExecute- For registry execution commands (npx/dlx patterns)```package-execute codama run js ```npx codama run js,pnpm dlx codama run js,yarn dlx codama run js,bunx codama run jsremarkPackageRun- For local script execution (npm run patterns)```package-run build:docs ```npm run build:docs,pnpm run build:docs,yarn run build:docs,bun run build:docsThe implementation correctly distinguishes between registry execution (npx/pnpm dlx/yarn dlx/bunx) and local script execution (npm run/pnpm run/yarn run/bun run) as outlined in the issue requirements.
Fixes #169