Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prepublish-ok

maddhruv18MIT0.5.0

Check before Publish

npmaudit, prepublishcheck, package-ok, check-package

readme

prepublish-ok

Check your package/project before publishing

Install

npm i prepublish-ok -D

or globally

npm i -g prepublish-ok

Usage

in your package.json scripts

"scripts": {
  "prepublishOnly" : "npm-audit-ok && package-ok"
}

Checks Includes

Npm Audit

npm-audit-ok - check for npm vulnerabilities

Package Check

package-ok - Checks paths in package.json