@teamvibe/poller 0.1.23 → 0.1.24

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.
@@ -7,11 +7,14 @@ import { logger } from './logger.js';
7
7
  const execAsync = promisify(exec);
8
8
  // Clean env for git commands:
9
9
  // - npm/npx sets GIT_ASKPASS which prevents credential helpers from working
10
- // - /data/bin may not be in PATH but contains tools like gh
10
+ // - PERSISTENT_STORAGE_PATH/bin may contain tools like gh not in default PATH
11
11
  const gitEnv = { ...process.env };
12
12
  delete gitEnv['GIT_ASKPASS'];
13
- if (gitEnv['PATH'] && !gitEnv['PATH'].includes('/data/bin')) {
14
- gitEnv['PATH'] = `/data/bin:${gitEnv['PATH']}`;
13
+ if (config.PERSISTENT_STORAGE_PATH) {
14
+ const binDir = `${config.PERSISTENT_STORAGE_PATH}/bin`;
15
+ if (!gitEnv['PATH']?.includes(binDir)) {
16
+ gitEnv['PATH'] = `${binDir}:${gitEnv['PATH'] || ''}`;
17
+ }
15
18
  }
16
19
  function gitExec(command, options) {
17
20
  return execAsync(command, { ...options, env: gitEnv });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamvibe/poller",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {