-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Remove usage of npx #4003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove usage of npx #4003
Conversation
|
Hey @user202729, Thank you for your contribution! While the change itself is valid, using npx provides a fallback mechanism when vsce (which is currently a dev dependency) isn't installed globally. Removing it could break builds for some developers. I think we should create an issue and discuss if this change makes sense before committing to it, I'll be closing this issue temporarily but feel free to reopen it once we have a discussion going. |
|
No, See
Also, as I mentioned in the pull request description: other scripts are already using this. two lines above: "publish:marketplace": "vsce publish --no-dependencies && ovsx publish --no-dependencies", |
|
@user202729 Thank your for your response. Is there any downside to having npx there at all? other than it being unnecessary? |
|
the downside is if someone doesn't have |
|
@user202729 |
daniel-lxs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked if I was able to run the script without having vsce installed globally and it seems to work normally.
cc: @cte
|
@user202729 do you have discord? |
Related GitHub Issue
None yet
Description
Currently the
buildscript depends onnpx. This is unnecessary (look at other scripts, they don't usenpxand work just fine), and also currently Roo-Code does not havenpxas a dependency.Test Procedure
pnpm buildcreates the.vsixfile for me without havingnpxinstalled.Type of Change
srcor test files.Pre-Submission Checklist
npm run lint).console.log) has been removed.npm test).mainbranch.npm run changesetif this PR includes user-facing changes or dependency updates.Screenshots / Videos
Documentation Updates
Additional Notes
Get in Touch
Important
Remove
npxfromvsixscript inpackage.json, simplifying the build process.npxfromvsixscript inpackage.json, directly usingvsce packageinstead.This description was created by
for 3f0a689c974083b646b9996ffa5211f1dc410b24. You can customize this summary. It will automatically update as commits are pushed.