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" version = "0.0.4"
authors = ["Wilson Lin <code@wilsonl.in>"] authors = ["Wilson Lin <code@wilsonl.in>"]
edition = "2018" edition = "2018"
include = ["/gen/**/*", "/src/**/*", "/build.rs", "/Cargo.toml", "/LICENSE", "/README.md"]
[badges] [badges]
maintenance = { status = "actively-developed" } maintenance = { status = "actively-developed" }

View File

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

View File

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

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}"`); 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}"`); replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `hyperbuild = "${NEW_VERSION}"`);
} }