Replace lib version globally in readme
This commit is contained in:
parent
39821b4c98
commit
d6e7f8f675
|
@ -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) {
|
||||
|
|
2
vendor/codemirror/README.md
vendored
2
vendor/codemirror/README.md
vendored
|
@ -1,4 +1,4 @@
|
|||
## v5.39.0
|
||||
## CodeMirror v0.0.0
|
||||
|
||||
List of essential folders & files copied from `node_modules/codemirror` to `vendor/codemirror`:
|
||||
|
||||
|
|
11
vendor/jsonlint/README.md
vendored
11
vendor/jsonlint/README.md
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user