opencode-worktree 0.2.4 → 0.2.5

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.
@@ -6,10 +6,12 @@ import os from 'node:os';
6
6
  import { spawn } from 'node:child_process';
7
7
  import { fileURLToPath } from 'node:url';
8
8
  import updateNotifier from 'update-notifier';
9
- import pkg from '../package.json' assert { type: 'json' };
10
9
 
11
10
  const __filename = fileURLToPath(import.meta.url);
12
11
  const __dirname = path.dirname(__filename);
12
+ const pkg = JSON.parse(
13
+ fs.readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
14
+ );
13
15
 
14
16
  updateNotifier({ pkg }).notify({ isGlobal: true });
15
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-worktree",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "TUI for managing git worktrees with opencode integration.",