@danielsimonjr/repo-tools 2.2.0 → 2.2.1
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/CHANGELOG.md +11 -0
- package/README.md +2 -2
- package/dist/cli.js +10 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,17 @@ All notable changes to this project are recorded in this file. The format follow
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [2.2.1] - 2026-10-08
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `repo-tools map` finds the entry roots of a package that has no `src/` tree. A `bin`, `main`,
|
|
14
|
+
`module` or `exports` entry that names a tracked source file (`bin/tool.mjs`, `./lib/index.js`)
|
|
15
|
+
is now a root. Before, only entries that map into `src/` counted. A package with `bin/` and `lib/`
|
|
16
|
+
and no `src/` showed `entryRoots` 0, and its `unused-analysis.md` listed every file as an orphan or
|
|
17
|
+
test-only. A package with a `src/` tree resolves as before, so a thin launcher that fails the scan
|
|
18
|
+
still warns. The warning text no longer says "under src/".
|
|
19
|
+
|
|
9
20
|
## [2.2.0] - 2026-10-02
|
|
10
21
|
|
|
11
22
|
`repo-tools docs` is the new gate of the doc comments of a repository. It ports `code_docs.py` of
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
| `query` | Answers structural questions from the graph of `map`, and writes two derived reports. |
|
|
14
14
|
| `ste` | Checks Markdown or docstring prose against Simplified Technical English. |
|
|
15
15
|
|
|
16
|
-
Status: version 2.2.
|
|
16
|
+
Status: version 2.2.1.
|
|
17
17
|
|
|
18
18
|
- `map`, `check` and `query` read their settings from `repo-tools.config.json` in the root. The
|
|
19
19
|
section of `map` is `map` (its old name, `depgraph`, is also read). `--config=<file>` makes any
|
|
@@ -41,7 +41,7 @@ repo-tools --version
|
|
|
41
41
|
|
|
42
42
|
The executable holds the tool and the Bun runtime. It needs no Bun, Node or `node_modules`.
|
|
43
43
|
Download the file for your platform and `SHA256SUMS` from the
|
|
44
|
-
[GitHub release](https://github.com/danielsimonjr/repo-tools/releases/tag/v2.2.
|
|
44
|
+
[GitHub release](https://github.com/danielsimonjr/repo-tools/releases/tag/v2.2.1):
|
|
45
45
|
|
|
46
46
|
| Platform | File |
|
|
47
47
|
|---|---|
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@danielsimonjr/repo-tools",
|
|
5
|
-
version: "2.2.
|
|
5
|
+
version: "2.2.1",
|
|
6
6
|
description: "One CLI for repository analysis: dependency graphs creation and query with per-export API facts, file chunking, and context compression. TypeScript on Bun, compiled to a single executable.",
|
|
7
7
|
type: "module",
|
|
8
8
|
license: "MIT",
|
|
@@ -12324,6 +12324,13 @@ function launcherEntry(root, spec, known) {
|
|
|
12324
12324
|
}
|
|
12325
12325
|
return null;
|
|
12326
12326
|
}
|
|
12327
|
+
function declaredSource(spec, known) {
|
|
12328
|
+
for (const path of known)
|
|
12329
|
+
if (path.startsWith("src/"))
|
|
12330
|
+
return null;
|
|
12331
|
+
const posix = lstripDotSlash(spec.replaceAll("\\", "/"));
|
|
12332
|
+
return known.has(posix) ? posix : null;
|
|
12333
|
+
}
|
|
12327
12334
|
var isObject2 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
12328
12335
|
function packageJsonRoots(root, known) {
|
|
12329
12336
|
let pkg;
|
|
@@ -12351,9 +12358,9 @@ function packageJsonRoots(root, known) {
|
|
|
12351
12358
|
for (const spec of raw) {
|
|
12352
12359
|
if (spec.endsWith(".json"))
|
|
12353
12360
|
continue;
|
|
12354
|
-
const mapped = mapDistToSrc(spec, known) ?? launcherEntry(root, spec, known);
|
|
12361
|
+
const mapped = mapDistToSrc(spec, known) ?? launcherEntry(root, spec, known) ?? declaredSource(spec, known);
|
|
12355
12362
|
if (mapped === null) {
|
|
12356
|
-
warnings.push(`package.json entry ${pyRepr(spec)} did not resolve to a known source file
|
|
12363
|
+
warnings.push(`package.json entry ${pyRepr(spec)} did not resolve to a known source file -- ` + "ignored; if no other declared entry resolves either, the entry-point root falls back to " + "a conventional src/index.* file instead");
|
|
12357
12364
|
continue;
|
|
12358
12365
|
}
|
|
12359
12366
|
if (!roots.includes(mapped))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/repo-tools",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "One CLI for repository analysis: dependency graphs creation and query with per-export API facts, file chunking, and context compression. TypeScript on Bun, compiled to a single executable.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|