@skyf0xx/hedgehog 0.1.10 → 0.1.11

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/bin/cli.mjs CHANGED
@@ -25,6 +25,13 @@ const yellow = (s) => paint('33', s);
25
25
  const red = (s) => paint('31', s);
26
26
  const dim = (s) => paint('2', s);
27
27
 
28
+ // npm's publish step silently drops any file literally named `.gitignore`
29
+ // (also `.npmignore`, `.git`, etc.) from the tarball, even when the
30
+ // containing directory is listed in `files` — there's no way to opt back
31
+ // in via `files` or `.npmignore`. So golden-core's is stored under this
32
+ // name and renamed back to `.gitignore` on copy, per dir entry below.
33
+ const DOTFILE_RENAMES = { 'gitignore.template': '.gitignore' };
34
+
28
35
  // ── the payload: what gets copied, and to where under the target repo ───
29
36
  // `dir` entries copy a whole tree; `file` entries copy a single file and
30
37
  // may rename (templates lose their src/templates/ prefix at the root).
@@ -61,7 +68,8 @@ async function plannedFiles(entry) {
61
68
  if (st.isDirectory()) {
62
69
  for (const name of await readdir(abs)) await walk(join(rel, name));
63
70
  } else {
64
- out.push({ src: abs, dest: join(DEST_ROOT, entry.to, rel) });
71
+ const renamed = DOTFILE_RENAMES[rel] ?? rel;
72
+ out.push({ src: abs, dest: join(DEST_ROOT, entry.to, renamed) });
65
73
  }
66
74
  }
67
75
  await walk('.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyf0xx/hedgehog",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Install the Hedgehog build discipline (agents + skills) into a repo.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -0,0 +1,20 @@
1
+ node_modules
2
+ dist
3
+ tmp
4
+ out-tsc
5
+ .env
6
+ .env.local
7
+ *.log
8
+ .DS_Store
9
+
10
+ .nx/cache
11
+ .nx/workspace-data
12
+ .nx/polygraph
13
+ .claude/worktrees
14
+ .claude/settings.local.json
15
+ vitest.config.*.timestamp*
16
+
17
+ # Next.js
18
+ .next
19
+ out
20
+ test-output