work-chronicler 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { existsSync } from 'node:fs';
3
+ import { createRequire } from 'node:module';
3
4
  import { dirname, resolve } from 'node:path';
4
5
  import { analyzeCommand } from './commands/analyze.js';
5
6
  import { fetchCommand } from './commands/fetch/index.js';
@@ -44,11 +45,13 @@ function loadEnvFile(override = false) {
44
45
  // Initial .env load (before --profile is parsed)
45
46
  // Use override:false so real env vars take precedence over .env
46
47
  loadEnvFile(false);
48
+ const require = createRequire(import.meta.url);
49
+ const { version } = require('../../package.json');
47
50
  const program = new Command();
48
51
  program
49
52
  .name('work-chronicler')
50
53
  .description('Gather, analyze, and summarize your work history from GitHub PRs and JIRA tickets')
51
- .version('0.1.1')
54
+ .version(version)
52
55
  .option('--profile <name>', 'Use a specific profile (overrides active profile)')
53
56
  .hook('preAction', (thisCommand) => {
54
57
  const opts = thisCommand.opts();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "work-chronicler",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Gather, analyze, and summarize your work history from GitHub PRs and JIRA tickets for performance reviews and resumes",
5
5
  "type": "module",
6
6
  "main": "dist/cli/index.js",