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.
- package/dist/flip/index.js +3 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/flip/index.js
CHANGED
|
@@ -149,8 +149,9 @@ async function setupHotkey() {
|
|
|
149
149
|
catch {
|
|
150
150
|
nodePath = '/usr/local/bin/node';
|
|
151
151
|
}
|
|
152
|
-
// Get csq path
|
|
153
|
-
|
|
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 =
|
|
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
|
|