Fix packages

This commit is contained in:
Wilson Lin 2019-12-30 19:20:33 +11:00
parent 25a03fa656
commit 7ac622d31e
4 changed files with 11 additions and 11 deletions

View File

@ -10,6 +10,7 @@ repository = "https://github.com/wilsonzlin/hyperbuild.git"
version = "0.0.4"
authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018"
include = ["/gen/**/*", "/src/**/*", "/build.rs", "/Cargo.toml", "/LICENSE", "/README.md"]
[badges]
maintenance = { status = "actively-developed" }

View File

@ -1,5 +1,6 @@
[package]
name = "hyperbuild-nodejs"
publish = false
version = "0.0.4"
authors = ["Wilson Lin <code@wilsonl.in>"]
license = "MIT"
@ -15,5 +16,5 @@ crate-type = ["cdylib"]
neon-build = "0.3.3"
[dependencies]
hyperbuild = { path = "../.." }
hyperbuild = "0.0.4"
neon = "0.3.3"

View File

@ -3,10 +3,6 @@
"version": "0.0.4",
"description": "One-pass in-place HTML minifier written in Rust with advanced whitespace handling",
"main": "lib/index.js",
"files": [
"lib/index.js",
"native/index.node"
],
"repository": {
"type": "git",
"url": "git+https://github.com/wilsonzlin/hyperbuild.git"
@ -30,14 +26,16 @@
"postpack": "rm README.md"
},
"keywords": [
"html",
"c",
"fast",
"build",
"builder",
"compress",
"compressor",
"fast",
"html",
"minifier",
"minify",
"preprocess",
"preprocessor",
"minify",
"minifier"
"rust"
]
}

View File

@ -11,7 +11,7 @@ for (const f of ["Cargo.toml", "nodejs/native/Cargo.toml"]) {
replaceInFile(f, /^version = "\d+\.\d+\.\d+"\s*$/m, `version = "${NEW_VERSION}"`);
}
for (const f of ["README.md"]) {
for (const f of ["README.md", "nodejs/native/Cargo.toml"]) {
replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `hyperbuild = "${NEW_VERSION}"`);
}