@cplieger/deadset-ts 7.1.0 → 7.2.0-dev.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/README.md +1 -1
- package/dist/src/alias-chain.js +6 -2
- package/dist/src/analysis.js +3 -1
- package/dist/src/config.js +4 -0
- package/dist/src/conformance-record.js +2 -2
- package/dist/src/decorator.js +3 -2
- package/dist/src/dependencies.js +0 -4
- package/dist/src/deprecation.js +1 -1
- package/dist/src/findings/completion.js +1 -1
- package/dist/src/findings/interfaces.js +1 -8
- package/dist/src/findings/unused-declarations.js +8 -11
- package/dist/src/html-entries.js +0 -3
- package/dist/src/injection-container.js +28 -25
- package/dist/src/intra-function-parts.js +71 -22
- package/dist/src/inventory.js +19 -6
- package/dist/src/kinds.js +2 -2
- package/dist/src/matrix.js +1 -8
- package/dist/src/module-declarations.js +0 -3
- package/dist/src/ref.js +3 -2
- package/dist/src/references.js +38 -20
- package/dist/src/report.js +1 -1
- package/dist/src/resolve.js +37 -4
- package/dist/src/schema.js +4 -1
- package/dist/src/suppress-file.js +43 -9
- package/dist/src/suppress-inline.js +35 -12
- package/dist/src/suppress.js +3 -2
- package/dist/src/type-errors.js +2 -1
- package/dist/src/verbs/analyze.js +7 -3
- package/dist/src/version.js +1 -1
- package/dist/src/workspace-resolution.js +5 -8
- package/dist/src/workspace.js +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/alias-chain.ts +7 -2
- package/src/analysis.ts +3 -3
- package/src/config.ts +9 -1
- package/src/conformance-record.ts +2 -2
- package/src/decorator.ts +8 -2
- package/src/dependencies.ts +0 -4
- package/src/deprecation.ts +1 -1
- package/src/findings/completion.ts +1 -4
- package/src/findings/interfaces.ts +1 -9
- package/src/findings/unused-declarations.ts +8 -15
- package/src/html-entries.ts +0 -3
- package/src/injection-container.ts +31 -26
- package/src/intra-function-parts.ts +96 -24
- package/src/inventory.ts +27 -5
- package/src/kinds.ts +2 -2
- package/src/matrix.ts +1 -9
- package/src/module-declarations.ts +0 -3
- package/src/ref.ts +3 -2
- package/src/references.ts +55 -21
- package/src/report.ts +1 -1
- package/src/resolve.ts +56 -6
- package/src/schema.ts +10 -14
- package/src/signatures.ts +6 -1
- package/src/suppress-file.ts +48 -9
- package/src/suppress-inline.ts +57 -15
- package/src/suppress.ts +3 -2
- package/src/type-errors.ts +2 -1
- package/src/verbs/analyze.ts +7 -2
- package/src/version.ts +1 -1
- package/src/workspace-resolution.ts +5 -8
- package/src/workspace.ts +2 -2
package/src/verbs/analyze.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
type RunAnalysis,
|
|
7
7
|
type RunProject,
|
|
8
8
|
} from "../analysis.ts";
|
|
9
|
-
import { ConfigError, type Format } from "../config.ts";
|
|
9
|
+
import { ConfigError, kindOf, type Format } from "../config.ts";
|
|
10
10
|
import { CONFORMANCE, DECLARED_GAPS } from "../conformance.ts";
|
|
11
11
|
import { moduleIdentity } from "../consumers.ts";
|
|
12
12
|
import { analyzerProvenance, verdictOf } from "../findings-pass.ts";
|
|
@@ -16,6 +16,7 @@ import type { NotBuilt } from "../discover.ts";
|
|
|
16
16
|
import { partialNotes } from "../partial.ts";
|
|
17
17
|
import {
|
|
18
18
|
buildReport,
|
|
19
|
+
LANGUAGE,
|
|
19
20
|
capFindings,
|
|
20
21
|
sortFindings,
|
|
21
22
|
type Report,
|
|
@@ -265,7 +266,11 @@ export const analyzeVerb: Verb = ({ err, host, inputs, scope, openClient, option
|
|
|
265
266
|
version,
|
|
266
267
|
conformance: CONFORMANCE,
|
|
267
268
|
declaredGaps: DECLARED_GAPS,
|
|
268
|
-
target: {
|
|
269
|
+
target: {
|
|
270
|
+
kind: kindOf(kind, LANGUAGE),
|
|
271
|
+
root,
|
|
272
|
+
identity: moduleIdentity(host, scoped.target),
|
|
273
|
+
},
|
|
269
274
|
configurations: configurationsOf(run.projects, targetRoot),
|
|
270
275
|
notBuilt: notBuiltOf(run.notBuilt, targetRoot),
|
|
271
276
|
loaded: run.consumers.map((consumer) => ({
|
package/src/version.ts
CHANGED
|
@@ -45,7 +45,6 @@ const DEPENDENCY_MEMBERS = [
|
|
|
45
45
|
] as const;
|
|
46
46
|
|
|
47
47
|
const SOURCE = /(?<!\.d)\.(?:[mc]?ts|tsx)$/u;
|
|
48
|
-
const OUTPUT = /(?:\.d\.[mc]?ts|\.[mc]?js|\.jsx)$/u;
|
|
49
48
|
|
|
50
49
|
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
51
50
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -70,7 +69,7 @@ export function packageNameOf(specifier: string): string | undefined {
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
function inside(dir: string, path: string): boolean {
|
|
73
|
-
return
|
|
72
|
+
return relativePath(dir, path) !== undefined;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
/** The `exports` entry one subpath selects, with what a pattern's `*` matched. */
|
|
@@ -274,12 +273,10 @@ export function workspaceResolver(host: Host, workspace: Workspace): WorkspaceRe
|
|
|
274
273
|
return found;
|
|
275
274
|
}
|
|
276
275
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
return found;
|
|
282
|
-
}
|
|
276
|
+
const beside = emittedFrom(path, { sourceDirs: [] });
|
|
277
|
+
const found = beside.find((candidate) => host.kindOf(candidate) === "file");
|
|
278
|
+
if (found !== undefined) {
|
|
279
|
+
return found;
|
|
283
280
|
}
|
|
284
281
|
return compiled(member, path) && host.kindOf(path) === "file" ? path : undefined;
|
|
285
282
|
};
|
package/src/workspace.ts
CHANGED
|
@@ -266,7 +266,7 @@ function memberDirectories(
|
|
|
266
266
|
}
|
|
267
267
|
return [...included].filter((dir) => {
|
|
268
268
|
const below = relativePath(root, dir);
|
|
269
|
-
const segments = below === undefined
|
|
269
|
+
const segments = below === undefined ? [] : below.split("/");
|
|
270
270
|
return dir === root || !excluded.some((pattern) => pathMatches(pattern, segments));
|
|
271
271
|
});
|
|
272
272
|
}
|
|
@@ -274,7 +274,7 @@ function memberDirectories(
|
|
|
274
274
|
/** Whether a workspace's patterns name one directory below its root, read without listing any. */
|
|
275
275
|
function namesDirectory(root: string, patterns: readonly string[], dir: string): boolean {
|
|
276
276
|
const below = relativePath(root, dir);
|
|
277
|
-
if (below === undefined || below
|
|
277
|
+
if (below === undefined || below.startsWith("..")) {
|
|
278
278
|
return false;
|
|
279
279
|
}
|
|
280
280
|
const path = below.split("/");
|