@lenne.tech/cli 1.23.0 → 1.24.0

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.
@@ -376,9 +376,10 @@ const NewCommand = {
376
376
  }
377
377
  return `created server symlink ${name}`;
378
378
  }
379
- // Git initialization (after npm install which is done in setupServer)
379
+ // Git initialization (after npm install which is done in setupServer).
380
+ // When cwd is not inside a repo, `git rev-parse` exits 128 — treat as false.
380
381
  if (git) {
381
- const inGit = (_2 = (yield system.run('git rev-parse --is-inside-work-tree'))) === null || _2 === void 0 ? void 0 : _2.trim();
382
+ const inGit = (_2 = (yield system.run('git rev-parse --is-inside-work-tree 2>/dev/null || echo false'))) === null || _2 === void 0 ? void 0 : _2.trim();
382
383
  if (inGit !== 'true') {
383
384
  // Determine initGit with priority: CLI > config > interactive
384
385
  let initializeGit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/cli",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "lenne.Tech CLI: lt",
5
5
  "keywords": [
6
6
  "lenne.Tech",