@abyrd9/harbor-cli 2.4.0 → 2.4.1
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/README.md +1 -1
- package/dist/index.js +0 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -268,7 +268,7 @@ Enable logging to stream service output to files in `.harbor/`. This is particul
|
|
|
268
268
|
- `maxLogLines`: Maximum lines to keep in log file (default: `1000`)
|
|
269
269
|
|
|
270
270
|
**Log files are:**
|
|
271
|
-
- Stored in `.harbor/` directory (
|
|
271
|
+
- Stored in `.harbor/` directory (add to `.gitignore` manually)
|
|
272
272
|
- Named `{session}-{service}.log` (e.g., `local-dev-test-api.log`)
|
|
273
273
|
- Automatically trimmed to prevent unbounded growth
|
|
274
274
|
- Stripped of ANSI escape codes for clean, readable output
|
package/dist/index.js
CHANGED
|
@@ -1204,17 +1204,6 @@ function ensureLogSetup(config) {
|
|
|
1204
1204
|
if (!fs.existsSync(harborDir)) {
|
|
1205
1205
|
fs.mkdirSync(harborDir, { recursive: true });
|
|
1206
1206
|
}
|
|
1207
|
-
const gitignorePath = path.join(process.cwd(), '.gitignore');
|
|
1208
|
-
if (!fs.existsSync(gitignorePath)) {
|
|
1209
|
-
return;
|
|
1210
|
-
}
|
|
1211
|
-
const gitignore = fs.readFileSync(gitignorePath, 'utf-8');
|
|
1212
|
-
if (gitignore.includes('.harbor')) {
|
|
1213
|
-
return;
|
|
1214
|
-
}
|
|
1215
|
-
const needsNewline = gitignore.length > 0 && !gitignore.endsWith('\n');
|
|
1216
|
-
const entry = `${needsNewline ? '\n' : ''}.harbor/\n`;
|
|
1217
|
-
fs.appendFileSync(gitignorePath, entry, 'utf-8');
|
|
1218
1207
|
}
|
|
1219
1208
|
// Get the package root directory
|
|
1220
1209
|
function getPackageRoot() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyrd9/harbor-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A CLI tool for orchestrating local development services in a tmux session. Perfect for microservices and polyglot projects with automatic service discovery and before/after script support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|