Conversation
- Update package.json and add screenshot - Initial commit
|
Congratulations on your new Raycast extension! 🚀 Due to our current reduced availability, the initial review may take up to 10-15 business days Once the PR is approved and merged, the extension will be available on our Store. |
There was a problem hiding this comment.
PR Summary
This PR adds a new extension "Pkg Swap" that converts npm commands to other package managers (pnpm, yarn, bun) with support for multiple command patterns and clipboard integration.
- Title in
extensions/pkg-swap/CHANGELOG.md("Package Morph") doesn't match the extension title inpackage.json("Pkg Swap") - Commands in
extensions/pkg-swap/package.jsonshould have subtitles set to "Pkg Swap" for better context launchCommandinextensions/pkg-swap/src/swap.tsshould be wrapped in a try-catch block- Consider using
showFailureToastfrom@raycast/utilsinextensions/pkg-swap/src/lib/converter.tsinstead of manual error handling - Since this is a new extension with
mode: "no-view"commands, ametadatafolder with screenshots should be added as per documentation
💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!
13 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings | Greptile
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
I tested it locally, and it works great. However, I'm now considering that since there are three separate commands for |
Yeah, I thought about this too. The way I was thinking about it is that the |
I think we can leave the |
|
Is this ready for another review? |
I think so? Were the suggestions above requirements for the review? If so, I'll need to push an update first. |
|
If it makes sense to add it might be a good idea to do that before merge 🙂 |
|
@pernielsentikaer updated to remove the main swap command in favor of the three base commands (per @ridemountainpig's suggestion). Should be all ready to go! |
Co-authored-by: Yen Cheng Lin <92412722+ridemountainpig@users.noreply.github.com>
ridemountainpig
left a comment
There was a problem hiding this comment.
Looks good to me.
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
Looks good to me, approved 🔥
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 Such a great contribution deserves a reward, but unfortunately we couldn't find your Raycast account based on your GitHub username (@neversitdull). |
Description
Pkg Swap is a simple utility that converts copied npm commands into your preferred package manager (pnpm, bun, yarn).
The extension includes 4 commands:
The goal of the extension is to make it easy to quickly copy npm commands and run them in your terminal or editor using one of the other package managers. This is especially useful when docs only share an example using npm.
Screencast
Here's a quick screencast showing the feature of copying a npm command from the Next.js docs and pasting into a terminal (Warp)
Screencast
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder