We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18c04f9 commit eb2dc5fCopy full SHA for eb2dc5f
lib/cli.js
@@ -21,6 +21,7 @@ import {splitPatternAndLineNumbers} from './line-numbers.js';
21
import {loadConfig} from './load-config.js';
22
import normalizeModuleTypes from './module-types.js';
23
import normalizeNodeArguments from './node-arguments.js';
24
+import pkg from './pkg.cjs';
25
import providerManager from './provider-manager.js';
26
import DefaultReporter from './reporters/default.js';
27
import TapReporter from './reporters/tap.js';
@@ -132,6 +133,7 @@ export default async function loadCli() { // eslint-disable-line complexity
132
133
134
let resetCache = false;
135
const {argv} = yargs(hideBin(process.argv))
136
+ .version(pkg.version)
137
.parserConfiguration({
138
'boolean-negation': true,
139
'camel-case-expansion': false,
0 commit comments