diff --git a/Cargo.toml b/Cargo.toml index a088f7e..c718ba5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ repository = "https://github.com/wilsonzlin/hyperbuild.git" version = "0.0.4" authors = ["Wilson Lin "] edition = "2018" +include = ["/gen/**/*", "/src/**/*", "/build.rs", "/Cargo.toml", "/LICENSE", "/README.md"] [badges] maintenance = { status = "actively-developed" } diff --git a/nodejs/native/Cargo.toml b/nodejs/native/Cargo.toml index a274df3..28d79cb 100644 --- a/nodejs/native/Cargo.toml +++ b/nodejs/native/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "hyperbuild-nodejs" +publish = false version = "0.0.4" authors = ["Wilson Lin "] 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" diff --git a/nodejs/package.json b/nodejs/package.json index da11c09..4fff8c4 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -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" ] } diff --git a/version b/version index 7766b30..cd562ac 100755 --- a/version +++ b/version @@ -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}"`); }