@autotelic/joggle 0.7.1 → 0.7.2
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/JOGGLE.md +6 -0
- package/dist/workspace.js +13 -2
- package/package.json +1 -1
package/JOGGLE.md
CHANGED
|
@@ -432,6 +432,12 @@ and every CI checkout. GitHub warns above **50 MB per file** and refuses above
|
|
|
432
432
|
`--max-age 90` needs ages, which only the machine cache records.
|
|
433
433
|
- A run says so when the store passes 8 MB, because a cache nobody measured is how
|
|
434
434
|
a 0-byte ledger on the base branch becomes 55 MB at the top of a stack.
|
|
435
|
+
- **Build output is never source.** The directory walk skips `node_modules`, `dist`,
|
|
436
|
+
`build`, `out`, `coverage`, `.next`, `.turbo`, `.vercel`, `.cache` and anything a
|
|
437
|
+
`.gitignore` excludes, and the checker's file list (under `--types`) is filtered the same
|
|
438
|
+
way. Without that, a tsconfig that includes `dist` made every declaration appear twice, and
|
|
439
|
+
the report said "declared in two places" about a build artifact — 73 of 95 findings on one
|
|
440
|
+
repository, present on a developer's machine and absent in CI because CI had never built.
|
|
435
441
|
- **A run says how it got its answers.** "N judgement(s) were asked of the model" means a
|
|
436
442
|
key was present and this run judged for itself; "N judgement(s) were replayed" means no model
|
|
437
443
|
was called. The two can name the same site differently, so a local report and a CI report at
|
package/dist/workspace.js
CHANGED
|
@@ -1760,11 +1760,22 @@ export const discoverFiles = (root, inputs, discovered) => discovered !== undefi
|
|
|
1760
1760
|
const inScope = yield* tsconfigScope(root);
|
|
1761
1761
|
const walked = yield* resolveInputs(root, ["."]);
|
|
1762
1762
|
const astro = walked.files.filter((file) => isAstro(file) && inScope(path.relative(root, file).split(path.sep).join("/")));
|
|
1763
|
+
// The checker's file list is a tsconfig's include, and a tsconfig's include is not a
|
|
1764
|
+
// judgement about what is source: `packages/*/dist` is inside the program when a
|
|
1765
|
+
// declaration is emitted there. Analysing it reads every declaration twice — once as
|
|
1766
|
+
// written, once as built — and reports "Query is declared in two places" about a
|
|
1767
|
+
// build artifact. 73 of 95 findings on one repository were exactly that, and the
|
|
1768
|
+
// walk has always known better (`policy.ignoredDirectories`); this list did not.
|
|
1769
|
+
const keep = (file) => !path
|
|
1770
|
+
.relative(root, file)
|
|
1771
|
+
.split(path.sep)
|
|
1772
|
+
.some((segment) => ignored.has(segment));
|
|
1773
|
+
const files = discovered.filter(keep);
|
|
1763
1774
|
return {
|
|
1764
|
-
files: [...
|
|
1775
|
+
files: [...files, ...astro.filter(keep)].sort(Order.String),
|
|
1765
1776
|
skippedExtensions: [],
|
|
1766
1777
|
truncated: walked.truncated,
|
|
1767
|
-
ignored:
|
|
1778
|
+
ignored: discovered.length - files.length,
|
|
1768
1779
|
ignoredDirectories: 0,
|
|
1769
1780
|
};
|
|
1770
1781
|
})
|