bonzai-burn 1.0.60 → 1.0.61
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/dist/bburn.js +8 -1
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/bburn.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import fs from 'fs';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
+
import { execSync } from 'child_process';
|
|
4
5
|
import { analyze, formatAnalysisResults } from './analyzer.js';
|
|
5
6
|
|
|
6
7
|
const BONZAI_DIR = 'bonzai';
|
|
@@ -46,7 +47,13 @@ async function main() {
|
|
|
46
47
|
console.log('─'.repeat(50));
|
|
47
48
|
console.log(`${totalIssues} issues across ${results.filesScanned} files (${results.durationMs}ms)\n`);
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
// Copy to clipboard
|
|
51
|
+
try {
|
|
52
|
+
execSync('pbcopy', { input: output });
|
|
53
|
+
console.log('issues copied to clipboard - run claude to install\n');
|
|
54
|
+
} catch {
|
|
55
|
+
console.log('Copy the above and give to Claude.\n');
|
|
56
|
+
}
|
|
50
57
|
} else {
|
|
51
58
|
console.log('✓ No issues found\n');
|
|
52
59
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { spawn, exec
|
|
2
|
+
import { execSync, spawn, exec } from 'child_process';
|
|
3
3
|
import fs4, { existsSync, mkdirSync, copyFileSync } from 'fs';
|
|
4
4
|
import path2, { dirname, join } from 'path';
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
@@ -494,7 +494,12 @@ async function main() {
|
|
|
494
494
|
console.log("\u2500".repeat(50));
|
|
495
495
|
console.log(`${totalIssues} issues across ${results.filesScanned} files (${results.durationMs}ms)
|
|
496
496
|
`);
|
|
497
|
-
|
|
497
|
+
try {
|
|
498
|
+
execSync("pbcopy", { input: output });
|
|
499
|
+
console.log("issues copied to clipboard - run claude to install\n");
|
|
500
|
+
} catch {
|
|
501
|
+
console.log("Copy the above and give to Claude.\n");
|
|
502
|
+
}
|
|
498
503
|
} else {
|
|
499
504
|
console.log("\u2713 No issues found\n");
|
|
500
505
|
}
|