When I run yarn init
one of the questions is question private
. I searched everywhere but couldn't find an explaination for that. What does it mean private
in this context?
1 Answer
yarn init
is meant to assist you in the process of creating a package.json
for a new project.
private
means adding a private: true
field in the autogenerated package.json
, which will instruct npm
to refuse publishing the package to the public NPM registry on npm publish
.