codekin 0.3.4 → 0.3.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.
- package/bin/codekin.mjs +3 -0
- package/package.json +1 -1
package/bin/codekin.mjs
CHANGED
|
@@ -216,6 +216,9 @@ const LAUNCHD_PLIST = join(homedir(), 'Library', 'LaunchAgents', `${LAUNCHD_LABE
|
|
|
216
216
|
function buildPlist() {
|
|
217
217
|
const { script, runner } = findServerScript()
|
|
218
218
|
const envVars = readEnvFile()
|
|
219
|
+
// Inject PATH and HOME so launchd service can find gh, node, etc.
|
|
220
|
+
if (!envVars.PATH && process.env.PATH) envVars.PATH = process.env.PATH
|
|
221
|
+
if (!envVars.HOME) envVars.HOME = homedir()
|
|
219
222
|
const envEntries = Object.entries(envVars)
|
|
220
223
|
.map(([k, v]) => `\t\t<key>${k}</key>\n\t\t<string>${v}</string>`)
|
|
221
224
|
.join('\n')
|
package/package.json
CHANGED