slopcannon 0.1.5 → 0.1.6

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/dist/cli.js +13 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1353,6 +1353,10 @@ ${l}
1353
1353
  }
1354
1354
  } }).prompt();
1355
1355
 
1356
+ // src/tui.ts
1357
+ import fs from "fs";
1358
+ import path3 from "path";
1359
+
1356
1360
  // src/git.ts
1357
1361
  import path from "path";
1358
1362
  function exec(args, cwd) {
@@ -1794,6 +1798,15 @@ async function runTui() {
1794
1798
  Le("Worktree creation failed.");
1795
1799
  return null;
1796
1800
  }
1801
+ try {
1802
+ const envFiles = fs.readdirSync(info.root).filter((f) => f.startsWith(".env"));
1803
+ if (envFiles.length > 0) {
1804
+ for (const f of envFiles) {
1805
+ fs.copyFileSync(path3.join(info.root, f), path3.join(worktreePath, f));
1806
+ }
1807
+ R2.info(`Copied ${envFiles.join(", ")}`);
1808
+ }
1809
+ } catch {}
1797
1810
  const style = loadConfig().activationStyle;
1798
1811
  if (style === "cannon")
1799
1812
  await cannonActivation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slopcannon",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Create a git worktree. Launch Claude Code. Ship slop.",
5
5
  "type": "module",
6
6
  "bin": {