genesis-compiler 1.8.0 → 1.8.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/README.md
CHANGED
|
@@ -461,6 +461,11 @@ implementing source files.
|
|
|
461
461
|
Both are derived JSON, not receipts, authority, or correctness claims. An
|
|
462
462
|
extractor warning does not stop ordinary work.
|
|
463
463
|
|
|
464
|
+
Local package exports whose entry files are excluded from indexing retain their
|
|
465
|
+
declared import paths with unavailable symbol coverage and a diagnostic. They do
|
|
466
|
+
not invalidate the rest of the architecture. After upgrading Genesis, run
|
|
467
|
+
`genesis index` to regenerate an affected snapshot.
|
|
468
|
+
|
|
464
469
|
The selected Stack decides which structural extractors run. Genesis uses the
|
|
465
470
|
Tree-sitter-backed [ast-grep JavaScript API](https://ast-grep.github.io/guide/api-usage/js-api.html)
|
|
466
471
|
through one shared engine. Built-in adapters cover JavaScript/TypeScript,
|
package/package.json
CHANGED
|
@@ -134,6 +134,10 @@ export async function inspectNpmPackages({ projectRoot, discovery, files, indexe
|
|
|
134
134
|
const point = { importPath, target: entry.target, conditions: entry.conditions, file: canonical(relative) && canonical(publicPath) ? publicPath : null, symbols: [], coverage: 'unsupported' };
|
|
135
135
|
record.entryPoints.push(point);
|
|
136
136
|
if (entry.target.includes('*') || !point.file || !/\.(?:[cm]?js|jsx|tsx?|vue)$/u.test(point.file)) continue;
|
|
137
|
+
if (owned && !known.has(point.file)) {
|
|
138
|
+
diagnostics.push({ code: 'NPM_INTERFACE_UNAVAILABLE', path: point.file, message: `${name}: the project-owned public entry is outside the indexed source inventory.` });
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
137
141
|
const file = await read(point.file, { indexed: Boolean(known.has(point.file)) });
|
|
138
142
|
if (file) entries.push({ record, point, file });
|
|
139
143
|
}
|