@mdless/cli 1.0.7 → 1.0.8
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 +2 -0
- package/package.json +1 -1
- package/src/commands/scan.ts +3 -8
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @mdless/cli
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
**Mind less, ship more.**
|
|
4
6
|
|
|
5
7
|
You know that feeling when you craft the perfect Claude Code skill, and then you need it in another project? Or when your teammate asks "how did you make Claude do that?"
|
package/package.json
CHANGED
package/src/commands/scan.ts
CHANGED
|
@@ -6,20 +6,15 @@ import { clearLine, formatDuration, truncatePath } from "../utils.js";
|
|
|
6
6
|
|
|
7
7
|
const EXCLUSIONS = new Set([
|
|
8
8
|
"node_modules",
|
|
9
|
-
".git",
|
|
10
9
|
"dist",
|
|
11
10
|
"build",
|
|
12
|
-
".Trash",
|
|
13
11
|
"Library",
|
|
14
12
|
"Applications",
|
|
15
|
-
".npm",
|
|
16
|
-
".cache",
|
|
17
|
-
".local",
|
|
18
13
|
"__pycache__",
|
|
19
14
|
"venv",
|
|
20
|
-
".venv",
|
|
21
15
|
"worktrees",
|
|
22
16
|
"workspaces",
|
|
17
|
+
"tmp",
|
|
23
18
|
]);
|
|
24
19
|
|
|
25
20
|
function* walkDirectories(dir: string): Generator<string> {
|
|
@@ -31,7 +26,7 @@ function* walkDirectories(dir: string): Generator<string> {
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
for (const entry of entries) {
|
|
34
|
-
if (EXCLUSIONS.has(entry)) continue;
|
|
29
|
+
if (entry.startsWith(".") || EXCLUSIONS.has(entry)) continue;
|
|
35
30
|
|
|
36
31
|
const fullPath = join(dir, entry);
|
|
37
32
|
let stat;
|
|
@@ -69,7 +64,7 @@ export async function scanCommand(): Promise<void> {
|
|
|
69
64
|
if (scanned % 100 === 0) {
|
|
70
65
|
clearLine();
|
|
71
66
|
process.stdout.write(
|
|
72
|
-
` ${scanned.toLocaleString()} checked, ${found.length} found | ${truncatePath(dir)}
|
|
67
|
+
` ${scanned.toLocaleString()} checked, ${found.length} found | ${truncatePath(dir)}`,
|
|
73
68
|
);
|
|
74
69
|
}
|
|
75
70
|
}
|