Fix Node.js versioning

This commit is contained in:
Wilson Lin 2022-06-22 12:06:15 +10:00
parent 0a270f4f70
commit fde8354461
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# minify-html changelog
## 0.9.2
- Fix Node.js dependency version.
## 0.9.1
- Fix Node.js postinstall script.

View File

@ -59,7 +59,7 @@ minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /
```toml
[dependencies]
minify-html = { version = "0.9.1" }
minify-html = "0.9.1"
```
### Use

View File

@ -112,10 +112,10 @@ for (const f of [
);
}
for (const f of ["README.md"]) {
for (const f of ["README.md", "nodejs/Cargo.toml"]) {
replaceInFile(
f,
/^(minify-html = \{ version = )"\d+\.\d+\.\d+"/m,
/^(minify-html = )"\d+\.\d+\.\d+"/m,
`$1"${NEW_VERSION}"`
);
}