Check your package/project before publishing
npm i prepublish-ok -D
or globally
npm i -g prepublish-ok
in your package.json scripts
"scripts": {
"prepublishOnly" : "npm-audit-ok && package-ok"
}
npm-audit-ok
- check for npm vulnerabilities
package-ok
- Checks paths in package.json