Skip to content

v0.1.9

Compare
Choose a tag to compare
@bluwy bluwy released this 23 Jan 10:04
· 215 commits to master since this release

Features

  • Add new rule to check if a file is referenced in package.json but is not published. (#22)
  • Export printMessage from publint/utils to log the default message from the publint() results. Works in Node.js only (for now). Convenient when re-implementing the CLI but running it programmatically. (#23)

Bug fixes

  • Fix ESM main suggestion check. Previously, if main is ESM it will suggest to use exports instead. While this is good, it's not necessary if the package already has an exports, as main can still be kept for backwards compatibility. Now it will only suggest if there's no exports since ESM packages should take advantage of the new field whenever possible.
  • Fix types export so autocompletion when importing publint/utils works.

Site

  • Enable quick linking in rules page
  • Refactor to write rules in markdown

Full Changelog: v0.1.8...v0.1.9