init-package-json icon indicating copy to clipboard operation
init-package-json copied to clipboard

Make `init.author` prompt like `init.license`

Open ljharb opened this issue 10 years ago • 3 comments

https://github.com/npm/init-package-json/blob/master/default-input.js#L182-L194 doesn't prompt if the author is specified. However, https://github.com/npm/init-package-json/blob/master/default-input.js#L196-L200 prompts regardless, and just uses the init.license value as a default.

Would it be possible to prompt the user to confirm the init.author settings as well?

ljharb avatar Dec 28 '14 21:12 ljharb

I support this. Although having different authors does seem like a rare occurrence, the option to change it should be there without having to unset init.author or manually edit the package.json file.

DanielFGray avatar Dec 28 '14 21:12 DanielFGray

Not necessarily rare if your company has their own registry.

kevinSuttle avatar Jan 13 '16 17:01 kevinSuttle