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.
Files changed (2) hide show
  1. package/bin/codekin.mjs +3 -0
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codekin",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "license": "MIT",
5
5
  "licenseNotes": "dompurify is dual-licensed (MPL-2.0 OR Apache-2.0); both are permissively compatible with MIT for library use",
6
6
  "author": "multiplier-labs",