elliot-stack 1.0.21 → 1.0.22

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/bin/install.cjs +5 -2
  2. package/package.json +1 -1
package/bin/install.cjs CHANGED
@@ -98,6 +98,9 @@ const DEPRECATED_SKILLS = [
98
98
 
99
99
  // ── Helpers ────────────────────────────────────────────────────────────────
100
100
 
101
+ const HASH_IGNORE_DIRS = new Set(['__pycache__', '.git', 'node_modules']);
102
+ const HASH_IGNORE_EXTS = new Set(['.pyc', '.pyo']);
103
+
101
104
  function walkDir(dir, base) {
102
105
  base = base || dir;
103
106
  const entries = fs.readdirSync(dir, { withFileTypes: true }).sort((a, b) =>
@@ -107,8 +110,8 @@ function walkDir(dir, base) {
107
110
  for (const entry of entries) {
108
111
  const full = path.join(dir, entry.name);
109
112
  if (entry.isDirectory()) {
110
- files.push(...walkDir(full, base));
111
- } else {
113
+ if (!HASH_IGNORE_DIRS.has(entry.name)) files.push(...walkDir(full, base));
114
+ } else if (!HASH_IGNORE_EXTS.has(path.extname(entry.name))) {
112
115
  files.push(path.relative(base, full));
113
116
  }
114
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elliot-stack",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Elliot's skill stack for Claude Code — install via npx elliot-stack@latest",
5
5
  "bin": {
6
6
  "elliot-stack": "bin/install.cjs"