Skip to content

Commit e611820

Browse files
committed
wip: roster checker-health split, reason ordering, docblock clause
1 parent 0c5d035 commit e611820

2 files changed

Lines changed: 359 additions & 18 deletions

File tree

scripts/check-cross-package-test-inputs.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,13 @@ const REPO_ROOT = resolve(HERE, '..');
352352
* wrong file is worse than a vague one, because the dev follows it and finds
353353
* nothing to edit. Computing it from the module URL also keeps the string out
354354
* of this module body: `extractWatchHints` strips a leading `./` and then
355-
* refuses what is left for having no separator, so an import specifier scores
356-
* as no population while a repo-relative spelling would score as one.
355+
* refuses what is left for having no separator -- with one exception, so that
356+
* a reader reasoning from this sentence about some OTHER literal gets the
357+
* right answer: a stripped literal that RESOLVES to a tracked DIRECTORY is
358+
* re-admitted (`moduleRelativeDirectoryHint`), and that predicate refuses a
359+
* tracked FILE explicitly. An import specifier resolves to a file, so it
360+
* scores as no population structurally rather than by luck, while a
361+
* repo-relative spelling would score as one.
357362
*/
358363
const DECLARATION_FILE = relative(REPO_ROOT, fileURLToPath(new URL('./cross-package-test-inputs.mjs', import.meta.url)));
359364

0 commit comments

Comments
 (0)