From f1e60e31d978ec3b19663d96dd38463b386340a3 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 25 Apr 2021 23:09:18 +0100 Subject: [PATCH] chore(makefile): add next-version target to preview new-version --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 13854db..fe08d61 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ .PHONY: new-version -new-version: - $(if $(shell which npx),,\ - $(error No npx found in PATH, please install NodeJS)) - $(if $(shell which standard-version),,\ - $(error No standard-version found in PATH, install with: \ - npm install -g standard-version)) - +new-version: check-npx npx standard-version + +.PHONY: next-version +next-version: check-npx + npx standard-version --dry-run + +.PHONY: check-npx +check-npx: + $(if $(shell which npx),,\ + $(error No npx execuable found in PATH, please install NodeJS))