0.2.1 • Published 10 months ago

publish-police v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

publish-police

Check npm package dist before publish (yep, I always forgot to build before publish)

npm GitHub

install

pnpm i publish-police -D

features

{
  "files": ["<pattern>"],
  "exports": {
    // ...exports
  },
}
  1. Check files fields in package.json is exit on disk.
  2. Check file listed in exports fields in package.json is exit on disk.

options

strict - default true, e.g. publish-police --strict=false

throw error if files not present or empty in package.json.

usage

set it in prepublishOnly script

{
  "prepublishOnly": "publish-police",
}

or exec manually before publish...

{
  "ci:publish": "pnpm run build && publish-police && pnpm changeset publish",
}
0.2.1

10 months ago

0.2.0

10 months ago

0.1.0

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago