Update usercss-meta

This commit is contained in:
eight 2018-09-26 11:30:10 +08:00
parent fefa987c4d
commit 7b959af3e3
4 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@
"stylelint-bundle": "^8.0.0",
"stylus-lang-bundle": "^0.54.5",
"updates": "^4.2.1",
"usercss-meta": "^0.8.0"
"usercss-meta": "^0.8.1"
},
"scripts": {
"lint": "eslint **/*.js || true",

View File

@ -38,7 +38,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(/\bv[\d.]+[-\w]*\b/g, `v${pkg.version}`));
return fs.writeFile(file, txt.replace(/\b([v@])[\d.]+[-\w]*\b/g, `$1${pkg.version}`));
}
function isFolder(fileOrFolder) {

View File

@ -1,5 +1,5 @@
## usercss-meta v0.8.0
## usercss-meta v0.8.1
usercss-meta installed via npm - source repo:
https://unpkg.com/usercss-meta@0.8.0/dist/usercss-meta.min.js
https://unpkg.com/usercss-meta@0.8.1/dist/usercss-meta.min.js

File diff suppressed because one or more lines are too long