-
-
Notifications
You must be signed in to change notification settings - Fork 946
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
[@pnpm/workspace.pkgs-graph] Ignore //
key in dependencies
#7513
Comments
Where do you get this information? npm fails too if you put "//" into the dependencies. This is not supported. pnpm works with |
https://groups.google.com/g/nodejs/c/NmL7jdeuw0M/m/yTqI05DRQrIJ
Of course, that's from 2013... The problem is, it does work in yarn, and I am not using pnpm myself; I wanted to use Knip which happens to use |
So if your project uses Yarn, then why is Knip using a pnpm package? |
Fwiw, Knip is a project linter and uses |
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
Dependencies resolver
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
package.json
:script
demo.js
:Run the script.
Describe the Bug
It fails with this error:
Expected Behavior
It should succeed. The
"//"
key is the recommended way to add "comments" to package.json, and making the value an array is the way to preserve multiple comments.Which Node.js version are you using?
18.17.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
Ubuntu (on WSL)
Related issue: #6618
The text was updated successfully, but these errors were encountered: