We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fac75e5 + 4e297e6 commit eb3233fCopy full SHA for eb3233f
package.json
@@ -1,6 +1,7 @@
1
{
2
"name": "gitlab-ci-local",
3
"main": "index.js",
4
+ "version": "3.0.1",
5
"scripts": {
6
"build-linux": "pkg dist/index.js -t node12-linux-x64 -o ./bin/linux/gitlab-ci-local && gzip -c bin/linux/gitlab-ci-local > bin/linux.gz",
7
"build-macos": "pkg dist/index.js -t node12-macos-x64 -o ./bin/macos/gitlab-ci-local && gzip -c bin/macos/gitlab-ci-local > bin/macos.gz",
src/index.ts
@@ -22,6 +22,8 @@ Array.prototype.first = function() {
22
23
const argv = yargs.argv;
24
const cwd = String(argv.cwd || process.cwd());
25
+yargs.alias("v", "version");
26
+yargs.version(JSON.parse(fs.readFileSync(`${cwd}/package.json`, "UTF8")).version);
27
const m: any = argv.m;
28
const manualArgs: string[] = [].concat(m || []);
29
0 commit comments