@chatie/semver
Advanced tools
Comparing version 0.4.2 to 0.4.5
@@ -18,7 +18,7 @@ #!/usr/bin/env node | ||
if (semver.isProd) { | ||
console.info(`${version} is production release`) | ||
console.info(`YES: ${version} is production release`) | ||
process.exit(0) | ||
} else { | ||
console.info(`${version} is development release`) | ||
console.info(`NO: ${version} is development release`) | ||
process.exit(1) | ||
} |
@@ -14,9 +14,9 @@ #!/usr/bin/env node | ||
if (semver.isProd) { | ||
console.info(`${version} is production release`); | ||
console.info(`YES: ${version} is production release`); | ||
process.exit(0); | ||
} | ||
else { | ||
console.info(`${version} is development release`); | ||
console.info(`NO: ${version} is development release`); | ||
process.exit(1); | ||
} | ||
//# sourceMappingURL=semver-is-prod.js.map |
{ | ||
"name": "@chatie/semver", | ||
"version": "0.4.2", | ||
"version": "0.4.5", | ||
"description": "The Enhanced Semantic Versioner for NPM", | ||
@@ -36,3 +36,2 @@ "main": "dist/src/index.js", | ||
"bin": { | ||
"semver-is-dev": "dist/bin/semver-is-dev.js", | ||
"semver-is-prod": "dist/bin/semver-is-prod.js" | ||
@@ -39,0 +38,0 @@ }, |
@@ -45,2 +45,3 @@ # @chatie/semver | ||
1. remove binary `semver-is-dev` because it might introduce bugs when using in devops. Use `semver-is-prod` instead. | ||
@@ -47,0 +48,0 @@ ### v0.2 June 09, 2019 |
@@ -29,7 +29,5 @@ #!/usr/bin/env ts-node | ||
const isProd = exec(`npx semver-is-prod ${version} > /dev/null`).code === 0 | ||
const isDev = exec(`npx semver-is-dev ${version} > /dev/null`).code === 0 | ||
t.equal(isProd, prod, `version/prod should match: ${version} -> ${prod}`) | ||
t.equal(isDev, !prod, `version/dev should match: ${version} -> ${!prod}`) | ||
} | ||
}) |
@@ -23,2 +23,1 @@ #!/usr/bin/env ts-node | ||
}) | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
68
122836
35
340