1.0.6 ā€¢ Published 8 years ago

lerna-npm-readme-hack v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

lerna-npm-readme-hack

npm README's, as published by lerna, don't update. bummer! see https://github.com/npm/registry/issues/42

solution

provide a CLI to get READMEs up to date!

install

npm i --save-dev lerna-npm-readme-hack

usage

  • lerna publish as usual, then run this utility to get your docs on npm up to date
// package.json
{
  "scripts": {
    "publish": "lerna publish && lerna-npm-readme-hack", // or
    "publish": "lerna publish && lerna-npm-readme-hack --packages-dir modules", // or
    "publish": "lerna publish && lerna-npm-readme-hack --packages pkg1,pkg2"
  }
}
  • the CLI has some useful info: ./node_modules/.bin/lerna-npm-readme-hack --help
šŸ›°  lerna-npm-readme-hack$ ./bin/lerna-npm-readme-hack.js --help

  Usage: lerna-npm-readme-hack [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -d, --packages-dir [path]  packages dir. assumes lerna packages in `packages` by default
    -p, --packages <names>     packages to publish readme for. assumes all folders with a README[.*] in the packages-dir
1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago