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.
1 parent 35ed699 commit 9d3f851Copy full SHA for 9d3f851
src/cli.ts
@@ -9,6 +9,7 @@ import * as chokidar from 'chokidar';
9
import * as program from 'commander';
10
import * as http from 'http';
11
import * as path from 'path';
12
+const npmPackage = require('../../package.json');
13
14
import { runProxy } from './app';
15
@@ -36,7 +37,7 @@ program //
36
37
'watch for changes in a file or directory (falls back to the OpenAPI file) and restart server accordingly',
38
)
39
.option('-v, --verbose', 'show verbose output')
- .version('1.0.0')
40
+ .version(npmPackage.version ?? '?')
41
.parse(process.argv);
42
43
let server: http.Server;
0 commit comments