Update usercss-meta
This commit is contained in:
parent
fefa987c4d
commit
7b959af3e3
|
@ -18,7 +18,7 @@
|
||||||
"stylelint-bundle": "^8.0.0",
|
"stylelint-bundle": "^8.0.0",
|
||||||
"stylus-lang-bundle": "^0.54.5",
|
"stylus-lang-bundle": "^0.54.5",
|
||||||
"updates": "^4.2.1",
|
"updates": "^4.2.1",
|
||||||
"usercss-meta": "^0.8.0"
|
"usercss-meta": "^0.8.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint **/*.js || true",
|
"lint": "eslint **/*.js || true",
|
||||||
|
|
|
@ -38,7 +38,7 @@ async function updateReadme(lib) {
|
||||||
const pkg = await fs.readJson(`${root}/node_modules/${lib}/package.json`);
|
const pkg = await fs.readJson(`${root}/node_modules/${lib}/package.json`);
|
||||||
const file = `${root}/vendor/${lib}/README.md`;
|
const file = `${root}/vendor/${lib}/README.md`;
|
||||||
const txt = await fs.readFile(file, 'utf8');
|
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) {
|
function isFolder(fileOrFolder) {
|
||||||
|
|
4
vendor/usercss-meta/README.md
vendored
4
vendor/usercss-meta/README.md
vendored
|
@ -1,5 +1,5 @@
|
||||||
## usercss-meta v0.8.0
|
## usercss-meta v0.8.1
|
||||||
|
|
||||||
usercss-meta installed via npm - source repo:
|
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
|
||||||
|
|
2
vendor/usercss-meta/usercss-meta.min.js
vendored
2
vendor/usercss-meta/usercss-meta.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user