Skip to content

Commit 6a93464

Browse files
author
Peter Hauge
committed
Unify version to a single place (package.json)
1 parent dec2756 commit 6a93464

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@peterhauge/apiops-cli",
3-
"version": "0.1.2-alpha.0",
3+
"version": "0.1.3-alpha.0",
44
"description": "CLI tool for Azure API Management configuration-as-code",
55
"type": "module",
66
"private": false,

src/cli/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ import { logger, parseLogLevel } from '../lib/logger.js';
99
import { createExtractCommand } from './extract-command.js';
1010
import { createPublishCommand } from './publish-command.js';
1111
import { createInitCommand } from './init-command.js';
12+
import packageJson from '../../package.json' with { type: 'json' };
1213

1314
const program = new Command();
1415

1516
// Configure program metadata
1617
program
1718
.name('apiops')
18-
.version('0.1.0')
19+
.version(packageJson.version)
1920
.description('CLI tool for Azure API Management configuration-as-code');
2021

2122
// Show global options in subcommand help (e.g. apiops extract --help)

0 commit comments

Comments
 (0)