@cordfuse/crosstalk 6.0.0-alpha.3 → 6.0.0-alpha.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cordfuse/crosstalk",
3
- "version": "6.0.0-alpha.3",
3
+ "version": "6.0.0-alpha.5",
4
4
  "description": "Crosstalk runtime — async messaging between agents over git, across machines.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "postpack": "rm -rf template"
26
26
  },
27
27
  "dependencies": {
28
- "@cordfuse/turnq": "^0.4.1",
28
+ "@cordfuse/turnq": "^0.4.2",
29
29
  "@lydell/node-pty": "^1.2.0-beta.12",
30
30
  "tsx": "^4.20.0",
31
31
  "yaml": "^2.8.0"
package/src/init.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // 1. <runtime_root>/template/ — bundled at publish time (production)
10
10
  // 2. <runtime_root>/../transport/ — monorepo layout (local dev)
11
11
 
12
- import { existsSync, mkdirSync, writeFileSync, cpSync } from 'fs';
12
+ import { existsSync, mkdirSync, writeFileSync, cpSync, renameSync } from 'fs';
13
13
  import { resolve, join, dirname } from 'path';
14
14
  import { hostname as osHostname } from 'os';
15
15
  import { randomUUID } from 'crypto';
@@ -54,6 +54,11 @@ cpSync(templateDir, targetDir, {
54
54
  force,
55
55
  filter: (src) => !src.endsWith('/transport/README.md') && !src.endsWith('\\transport\\README.md'),
56
56
  });
57
+ // npm strips .gitignore from published packages; the template ships it as
58
+ // `gitignore` and we rename it here.
59
+ const gitignoreSrc = join(targetDir, 'gitignore');
60
+ const gitignoreDst = join(targetDir, '.gitignore');
61
+ if (existsSync(gitignoreSrc)) renameSync(gitignoreSrc, gitignoreDst);
57
62
 
58
63
  const hostname = osHostname();
59
64
  const hostsDir = join(targetDir, 'hosts');
@@ -0,0 +1,4 @@
1
+ .DS_Store
2
+ Thumbs.db
3
+ node_modules/
4
+ .turnq/