IF Commons GitHub

versions/scan

The records of the works under a folder, found by walking it (commons 0026-works-versioning FR-032): every file named release.ts, with its path from the folder, for the rule plugin of holdHarness that judges what a folder can judge offline.

Host layer: it reads the file system. It skips node_modules, .git, .claude and _site, which hold no work's record. The command (../versions.ts) reads the tracked files of Git instead, so that an untracked file is no work; this walk is for a harness's check of a folder with no Git.

import { readWorks } from "./scan.ts";
readWorks(".").map((w) => w.path); // ["commons/core/release.ts", ...]

Source: commons/mizan/src/versions/scan.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

versions.readWorksfunctionno test imports it
function readWorks(root: string): readonly WorkFile[]

Every release.ts under root, as { path (from root, with /), text }, in path order.

readWorksfunction
function readWorks(root: string): readonly WorkFile[]

Every release.ts under root, as { path (from root, with /), text }, in path order.

Imported by 19 tests of the run (19 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.