v1.4.0
giladgray
released this
20 Jun 00:13
·
15 commits
to master
since this release
- 🌟 #70 new
NpmPlugin
provides NPM package data forpackage.json
filesimport { Documentalist, NpmPlugin } from "documentalist"; new Documentalist({ sourceBaseDir: "../../" }) .use("package.json", new NpmPlugin({ excludePrivate: true, excludeNames: [/-app$/] })) .documentGlobs("packages/*/package.json") .then(({ npm }) => console.log(npm["package-name"].latestVersion));
- version info is fetched for published packages using
npm info
- unpublished packages expose only
latestVersion
from package.json and are markedpublished: false
- version info is fetched for published packages using
- #69
MarkdownPlugin
page nodes now havesourcePath
property - new
Documentalist()
option:sourceBaseDir
is starting point for relativesourcePath
fields