Skip to content
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

[DOCS] Please provide clear documentation on how devDependencies installation will be triggered when installing dependencies through the git protocol. #7328

Open
2 tasks done
xqin opened this issue Apr 1, 2024 · 0 comments
Labels
Documentation documentation related issue Needs Triage needs review for next steps

Comments

@xqin
Copy link

xqin commented Apr 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI Docs Problem.

Description of Problem

When installing packages through the git protocol, the document only mentions that prepare will trigger the installation of dependencies and devDependencies. However, the actual code implementation is not limited to this stage, so please clearly indicate in the document all stages that can trigger the installation of devDependencies.

https://docs.npmjs.com/cli/v10/using-npm/scripts#life-cycle-scripts

image

https://github.com/npm/pacote/blob/main/lib/git.js#L167-L172

image

Potential Solution

No response

Affected URL

No response

@xqin xqin added Documentation documentation related issue Needs Triage needs review for next steps labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation documentation related issue Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

1 participant