opencode-worktree 0.2.2 → 0.2.4

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.
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const path = require('node:path');
4
- const os = require('node:os');
5
- const fs = require('node:fs');
6
- const { spawn } = require('node:child_process');
7
- const updateNotifier = require('update-notifier');
3
+ import fs from 'node:fs';
4
+ import path from 'node:path';
5
+ import os from 'node:os';
6
+ import { spawn } from 'node:child_process';
7
+ import { fileURLToPath } from 'node:url';
8
+ import updateNotifier from 'update-notifier';
9
+ import pkg from '../package.json' assert { type: 'json' };
8
10
 
9
- const pkg = require('../package.json');
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
10
13
 
11
14
  updateNotifier({ pkg }).notify({ isGlobal: true });
12
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-worktree",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "TUI for managing git worktrees with opencode integration.",
@@ -28,7 +28,7 @@
28
28
  "dev": "bun src/cli.ts",
29
29
  "build:single": "bun run script/build.ts --single",
30
30
  "build:all": "bun run script/build.ts",
31
- "publish": "bun run script/publish.ts"
31
+ "release:publish": "bun run script/publish.ts"
32
32
  },
33
33
  "files": [
34
34
  "bin",