code-squad-cli 1.1.1 → 1.1.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.
@@ -149,8 +149,9 @@ async function setupHotkey() {
149
149
  catch {
150
150
  nodePath = '/usr/local/bin/node';
151
151
  }
152
- // Get csq path (this script's location)
153
- const csqPath = path.resolve(path.dirname(new URL(import.meta.url).pathname), '../../index.js');
152
+ // Get csq path - after bundling, all code is in dist/index.js
153
+ // so import.meta.url points directly to the entry point
154
+ const csqPath = new URL(import.meta.url).pathname;
154
155
  // Create config directory
155
156
  fs.mkdirSync(configDir, { recursive: true });
156
157
  // Write AppleScript
package/dist/index.js CHANGED
@@ -998,7 +998,7 @@ async function setupHotkey() {
998
998
  } catch {
999
999
  nodePath = "/usr/local/bin/node";
1000
1000
  }
1001
- const csqPath = path6.resolve(path6.dirname(new URL(import.meta.url).pathname), "../../index.js");
1001
+ const csqPath = new URL(import.meta.url).pathname;
1002
1002
  fs6.mkdirSync(configDir, { recursive: true });
1003
1003
  const applescriptContent = `#!/usr/bin/osascript
1004
1004
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-squad-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "csq": "./dist/index.js"