cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] npm publish --dry-run For script prepare void

Open shinelp100 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

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

  • [X] This is a CLI Docs Problem.

Description of Problem

npm publish --dry-run For script prepare void

prepare will not run during --dry-run

"scripts": { "jest": "jest", "prepare": "npx husky install" },

node: 16.15.0 npm: 8.5.5

image

Potential Solution

No response

Affected URL

No response

shinelp100 avatar Jul 22 '22 02:07 shinelp100

The documentation says that --dry-run should not run prepare, but it currently does.

fritzy avatar Jul 27 '22 21:07 fritzy

What are the steps to reproduce the issue?

jpg619 avatar Oct 03 '23 14:10 jpg619

@jpg619 this is a documentation issue, the docs need to reflect how npm 7 and up do things.

wraithgar avatar Oct 03 '23 15:10 wraithgar