From d0c24edf03f7a23490d29ac08538db6397e9292f Mon Sep 17 00:00:00 2001 From: Tim Disney Date: Mon, 2 Mar 2026 21:33:29 -0800 Subject: [PATCH] fix hard coded version --- cli/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/src/index.ts b/cli/src/index.ts index 2b8baac..d99c430 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -1,15 +1,19 @@ #!/usr/bin/env node import { Command } from 'commander'; +import { createRequire } from 'module'; import { loginCommand } from './commands/login.js'; import { whoamiCommand } from './commands/whoami.js'; import { subscriptionsCommand } from './commands/subscriptions.js'; import { feedsCommand } from './commands/feeds.js'; import { savedCommand } from './commands/saved.js'; +const require = createRequire(import.meta.url); +const { version } = require('../package.json'); + const program = new Command() .name('skyreader') .description('Skyreader CLI - Read and manage RSS feeds from the terminal') - .version('0.1.0'); + .version(version); program.addCommand(loginCommand); program.addCommand(whoamiCommand);