@cr8rcho/alkahest 0.1.89 → 0.1.90

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": "@cr8rcho/alkahest",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,7 +17,7 @@
17
17
  // Re-running is safe: import is idempotent by source_path, then title.
18
18
  // This script belongs to the repo it lives in — adapt titles/sets/maps to local conventions.
19
19
  // Usage: node scripts/sync-docs-maps.mjs [--stage-only]
20
- import { readdirSync, readFileSync, mkdirSync, writeFileSync, rmSync } from "node:fs";
20
+ import { readdirSync, readFileSync, mkdirSync, writeFileSync, mkdtempSync } from "node:fs";
21
21
  import { spawnSync } from "node:child_process";
22
22
  import { join, dirname, basename } from "node:path";
23
23
  import { fileURLToPath } from "node:url";
@@ -25,8 +25,9 @@ import { tmpdir } from "node:os";
25
25
 
26
26
  const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
27
27
  const DOCS = join(ROOT, "docs");
28
- const OUT = join(tmpdir(), "alkahest-docs-staging");
29
- rmSync(OUT, { recursive: true, force: true });
28
+ // A fresh dir per run: a fixed shared path let another repo's copy of this script, running at the
29
+ // same time, restage its own docs under us, and our import pushed them into this project's maps.
30
+ const OUT = mkdtempSync(join(tmpdir(), "alkahest-docs-staging-"));
30
31
 
31
32
  const sanitize = (t) =>
32
33
  t.replace(/\(\//g, "(").replace(/[/\\:]/g, "-").replace(/`/g, "").replace(/\s+/g, " ").trim();