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: Mention how to use in npm scripts #52

Open
amilajack opened this issue Jul 21, 2016 · 4 comments
Open

📝 Docs: Mention how to use in npm scripts #52

amilajack opened this issue Jul 21, 2016 · 4 comments
Labels
area: documentation Improvements or additions to docs 📝 status: accepting prs Please, send a pull request to resolve this! 🙏

Comments

@amilajack
Copy link
Contributor

A nice addition would be to use this as an npm script:

// package.json
{
  "scripts": {
    "test": "package-json-validator"
  }
}
@amilajack
Copy link
Contributor Author

amilajack commented Jul 21, 2016

I think you need to add this as a .bin for this to work

@ntwb
Copy link

ntwb commented Jan 6, 2018

Would something like `"test": "npx package-json-validator -w -r --spec npm package.json" work if you're using > npm 5.x

@LinusU
Copy link
Collaborator

LinusU commented Jan 6, 2018

You should be able to just use "test": "pjv", since that is the name of the bin:

https://github.com/gorillamania/package.json-validator/blob/fd9578d6f0cd66c57cda64f09b2b10a5ae562824/package.json#L52

@JoshuaKGoldberg JoshuaKGoldberg added the area: documentation Improvements or additions to docs 📝 label Mar 28, 2024
@JoshuaKGoldberg
Copy link
Owner

Marking as a docs issue. Let's add a mention to the README.md of how to do this!

@JoshuaKGoldberg JoshuaKGoldberg changed the title Use in npm scripts Docs: Mention how to use in npm scripts Mar 28, 2024
@JoshuaKGoldberg JoshuaKGoldberg added the status: accepting prs Please, send a pull request to resolve this! 🙏 label Mar 28, 2024
@JoshuaKGoldberg JoshuaKGoldberg changed the title Docs: Mention how to use in npm scripts 📝 Docs: Mention how to use in npm scripts Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation Improvements or additions to docs 📝 status: accepting prs Please, send a pull request to resolve this! 🙏
Projects
None yet
Development

No branches or pull requests

4 participants