Skip to content

Commit

Permalink
(fix) full version number in svelte-check --version (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Dec 1, 2022
1 parent 4b437e0 commit 42bbb8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/svelte-check/src/options.ts
Expand Up @@ -20,7 +20,8 @@ export interface SvelteCheckCliOptions {
// eslint-disable max-len
export function parseOptions(cb: (opts: SvelteCheckCliOptions) => any) {
const prog = sade('svelte-check', true)
.version('2.x')
// eslint-disable-next-line @typescript-eslint/no-var-requires
.version(require('../../package.json').version) // ends up in dist/src, that's why we go two levels up
.option(
'--workspace',
'Path to your workspace. All subdirectories except node_modules and those listed in `--ignore` are checked'
Expand Down

0 comments on commit 42bbb8b

Please sign in to comment.