chore: don't include dist in the release commit (#2385)

This commit is contained in:
ylemkimon
2020-08-10 08:52:34 +09:00
committed by GitHub
parent dcd97aa0c2
commit 057b02feac
3 changed files with 5 additions and 18 deletions

View File

@@ -9,10 +9,6 @@ const version = process.argv[2];
Promise.all(process.argv.slice(3).map(file =>
fs.readFile(file, "utf8")
.then(body => {
// Replace size badge url
// eslint-disable-next-line max-len
body = body.replace(/(https:\/\/img\.badgesize\.io\/KaTeX\/KaTeX\/v)(?:.+)(\/dist\/katex\.min\.js\?compression=gzip)/g, `$1${version}$2`);
// Replace CDN urls
// 1 - url prefix: "http…/KaTeX/
// 2 - opening quote: "