Replace lib version globally in readme

This commit is contained in:
Rob Garrison 2018-07-18 01:19:13 -05:00
parent 39821b4c98
commit d6e7f8f675
3 changed files with 11 additions and 4 deletions

View File

@ -47,7 +47,7 @@ async function updateReadme(lib) {
const pkg = await fs.readJson(`${root}/node_modules/${lib}/package.json`);
const file = `${root}/vendor/${lib}/README.md`;
const txt = await fs.readFile(file, 'utf8');
return fs.writeFile(file, txt.replace(/##\s*v[-\w.]+/, `## v${pkg.version}`));
return fs.writeFile(file, txt.replace(/\bv[\d.]+[-\w]*\b/g, `v${pkg.version}`));
}
async function copy(lib, folder) {

View File

@ -1,4 +1,4 @@
## v5.39.0
## CodeMirror v0.0.0
List of essential folders & files copied from `node_modules/codemirror` to `vendor/codemirror`:

View File

@ -1,3 +1,10 @@
## v1.6.3
## Jsonlint v0.0.0
Jsonlint version installed via npm - source repo https://github.com/zaach/jsonlint
Jsonlint installed via npm - source repo:
https://github.com/zaach/jsonlint/blob/v0.0.0/lib/jsonlint.js
If the link doesn't work, it is likely that the npm version and the release versions don't match:
https://www.npmjs.com/package/jsonlint
https://github.com/zaach/jsonlint/releases