Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/svelte-check/src/options.ts
Original file line number Diff line number Diff line change
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