lucene-filter.js

Data filter for lucene queries
git clone git://git.finwo.net/lib/lucene-filter.js
Log | Files | Refs | README | LICENSE

commit d57c8b83c556a7a9ef8ae79a11e014e861faa02e
parent 59cfe11bfe9c17a2805f76dacca7de96e4fed287
Author: finwo <finwo@pm.me>
Date:   Tue, 21 Apr 2020 13:34:50 +0200

Automatically deprecate old versions on publish

Diffstat:
Mpackage.json | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package.json b/package.json @@ -5,7 +5,8 @@ "main": "src/index.js", "scripts": { "build": "scripts/build.sh", - "test": "scripts/test.sh" + "test": "scripts/test.sh", + "postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{print $2}' | sed 's/[\",]//g' | tr -d '[[:space:]]') && npm deprecate \"lucene-filter@<${PACKAGE_VERSION}\" \"Rolling release, please update to ${PACKAGE_VERSION}\"" }, "repository": { "type": "git",