bonzai-burn 1.0.18 → 1.0.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bonzai-burn",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Git branch-based cleanup tool with bburn, baccept, and brevert commands",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -27,7 +27,7 @@ function createTerminal(sessionId, cols = 80, rows = 24) {
27
27
  }
28
28
 
29
29
  const shell = getDefaultShell();
30
- const cwd = process.env.HOME || process.cwd();
30
+ const cwd = process.env.BONZAI_REPO_DIR || process.cwd();
31
31
 
32
32
  let ptyProcess;
33
33
  try {
package/src/bgraph.js CHANGED
@@ -149,7 +149,11 @@ async function main() {
149
149
  // Start the server automatically
150
150
  const server = spawn('node', ['receiver.js'], {
151
151
  stdio: 'inherit',
152
- cwd: bonzaiDir
152
+ cwd: bonzaiDir,
153
+ env: {
154
+ ...process.env,
155
+ BONZAI_REPO_DIR: currentDir
156
+ }
153
157
  });
154
158
 
155
159
  // Open browser automatically