@clerc/plugin-version
Advanced tools
Comparing version 0.12.3 to 0.12.4
import { definePlugin } from '@clerc/core'; | ||
import { gracefulVersion } from '@clerc/utils'; | ||
const gracefulVersion = (v) => v.length === 0 ? "" : v.startsWith("v") ? v : `v${v}`; | ||
const versionPlugin = ({ | ||
@@ -15,3 +16,3 @@ alias = ["V"], | ||
cli = cli.command("version", "Show version").on("version", () => { | ||
console.log(gracefullyVersion); | ||
process.stdout.write(gracefullyVersion); | ||
}); | ||
@@ -35,3 +36,3 @@ } | ||
} else { | ||
console.log(gracefullyVersion); | ||
process.stdout.write(gracefullyVersion); | ||
} | ||
@@ -38,0 +39,0 @@ } |
{ | ||
"name": "@clerc/plugin-version", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)", | ||
@@ -46,3 +46,3 @@ "description": "Clerc plugin version", | ||
"devDependencies": { | ||
"@clerc/core": "0.12.3" | ||
"@clerc/core": "0.12.4" | ||
}, | ||
@@ -49,0 +49,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
4708