@akiojin/gwt 2.0.3 → 2.0.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.
Files changed (2) hide show
  1. package/bin/gwt.js +7 -1
  2. package/package.json +1 -1
package/bin/gwt.js CHANGED
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import('../dist/index.js').catch(err => {
2
+ import('../dist/index.js').then(module => {
3
+ if (module.main) {
4
+ return module.main();
5
+ } else {
6
+ throw new Error('main function not found in index.js');
7
+ }
8
+ }).catch(err => {
3
9
  console.error(err);
4
10
  process.exit(1);
5
11
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akiojin/gwt",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Interactive Git worktree manager for Claude Code with graphical branch selection",
5
5
  "main": "dist/index.js",
6
6
  "bin": {