Skip to content

Make init.author prompt like init.license #30

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

Open
Tracked by #930
ljharb opened this issue Dec 28, 2014 · 3 comments
Open
Tracked by #930

Make init.author prompt like init.license #30

ljharb opened this issue Dec 28, 2014 · 3 comments
Labels
semver:major backwards-incompatible breaking changes

Comments

@ljharb
Copy link

ljharb commented Dec 28, 2014

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?

@DanielFGray
Copy link

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.

@kevinSuttle
Copy link

Not necessarily rare if your company has their own registry.

@wraithgar wraithgar added semver:major backwards-incompatible breaking changes and removed semver:major backwards-incompatible breaking changes labels May 5, 2025
@wraithgar wraithgar added the semver:major backwards-incompatible breaking changes label May 5, 2025
@wraithgar
Copy link
Member

Added to npm/statusboard#930

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:major backwards-incompatible breaking changes
Projects
None yet
Development

No branches or pull requests

4 participants