@cplieger/deadset-ts 8.0.0-dev.1 → 8.0.0-dev.10
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/bin/mapper-connection.js +2 -1
- package/dist/bin/node-host.js +24 -5
- package/dist/src/analysis.js +181 -341
- package/dist/src/augmentations.js +106 -13
- package/dist/src/automatic-types.js +10 -29
- package/dist/src/build-scripts.js +425 -0
- package/dist/src/component-layer.js +4 -2
- package/dist/src/components.js +2 -3
- package/dist/src/config.js +6 -82
- package/dist/src/configuration-files.js +28 -176
- package/dist/src/configured-declarations.js +15 -20
- package/dist/src/conformance-record.js +1 -1
- package/dist/src/consumers.js +3 -30
- package/dist/src/contextual-uses.js +56 -9
- package/dist/src/contract/config.generated.js +558 -0
- package/dist/src/contract/contract.generated.js +1244 -0
- package/dist/src/contract/report.generated.js +862 -0
- package/dist/src/convention-rows.js +73 -3
- package/dist/src/conventions.js +36 -66
- package/dist/src/dependencies.js +103 -40
- package/dist/src/edges.js +38 -122
- package/dist/src/element-access.js +4 -6
- package/dist/src/entry-point-gaps.js +2 -8
- package/dist/src/entry-points.js +11 -27
- package/dist/src/enum-group.js +3 -10
- package/dist/src/erased-stores.js +4 -6
- package/dist/src/exempt-classes.js +1 -63
- package/dist/src/exempt.js +21 -40
- package/dist/src/failure.js +36 -0
- package/dist/src/file-facts.js +2 -25
- package/dist/src/findings/completion.js +139 -72
- package/dist/src/findings/dependencies-and-module-machinery.js +4 -5
- package/dist/src/findings/emitters.js +5 -5
- package/dist/src/findings/interfaces.js +4 -5
- package/dist/src/findings/intra-function.js +13 -10
- package/dist/src/findings/non-code-artifacts.js +7 -8
- package/dist/src/findings/reads-and-writes.js +16 -13
- package/dist/src/findings/self-check.js +10 -12
- package/dist/src/findings/unused-declarations.js +41 -32
- package/dist/src/findings/visibility-narrowing.js +19 -16
- package/dist/src/findings-pass.js +8 -15
- package/dist/src/framework-lifecycle.js +7 -7
- package/dist/src/fs/document.js +52 -0
- package/dist/src/fs/manifest.js +72 -0
- package/dist/src/fs/tree.js +88 -0
- package/dist/src/generated-file.js +7 -4
- package/dist/src/git-ignore.js +39 -26
- package/dist/src/graph.js +5 -3
- package/dist/src/html-entries.js +6 -33
- package/dist/src/in-operands.js +2 -1
- package/dist/src/index.js +1 -1
- package/dist/src/injection-container.js +1 -1
- package/dist/src/intra-function-parts.js +63 -43
- package/dist/src/inventory.js +2 -21
- package/dist/src/javascript-file.js +33 -0
- package/dist/src/json-document.js +198 -67
- package/dist/src/keyof-comparisons.js +4 -6
- package/dist/src/kinds.js +3 -366
- package/dist/src/load/classify.js +270 -0
- package/dist/src/load/diagnostics.js +80 -0
- package/dist/src/load/discover.js +277 -0
- package/dist/src/{emit-map.js → load/emit-map.js} +1 -1
- package/dist/src/load/expected-module.js +136 -0
- package/dist/src/load/load.js +27 -0
- package/dist/src/load/module-lookup.js +37 -0
- package/dist/src/load/plan.js +313 -0
- package/dist/src/load/specifiers.js +115 -0
- package/dist/src/load/synthesize.js +140 -0
- package/dist/src/load/test-globals.js +207 -0
- package/dist/src/load/test-joins.js +82 -0
- package/dist/src/{workspace-manifests.js → load/workspace-manifests.js} +4 -4
- package/dist/src/{workspace-programs.js → load/workspace-programs.js} +89 -66
- package/dist/src/{workspace-resolution.js → load/workspace-resolution.js} +23 -65
- package/dist/src/{workspace-run.js → load/workspace-run.js} +7 -7
- package/dist/src/{workspace.js → load/workspace.js} +62 -124
- package/dist/src/manifest.js +49 -54
- package/dist/src/matrix.js +76 -4
- package/dist/src/mdx-entries.js +3 -26
- package/dist/src/outside-tests.js +1 -1
- package/dist/src/partial.js +2 -1
- package/dist/src/paths.js +26 -15
- package/dist/src/position.js +2 -1
- package/dist/src/print.js +11 -79
- package/dist/src/product.js +13 -0
- package/dist/src/query.js +1 -0
- package/dist/src/ref.js +1 -0
- package/dist/src/references.js +48 -30
- package/dist/src/report-schema.js +51 -0
- package/dist/src/report.js +57 -41
- package/dist/src/reporters/annotations.js +15 -8
- package/dist/src/reporters/sarif.js +16 -10
- package/dist/src/reporters/template.js +4 -19
- package/dist/src/resolve.js +245 -729
- package/dist/src/roots.js +273 -87
- package/dist/src/run.js +66 -77
- package/dist/src/schema.js +320 -343
- package/dist/src/scope.js +38 -115
- package/dist/src/serialization-contract.js +595 -21
- package/dist/src/session.js +34 -29
- package/dist/src/source-files.js +1 -1
- package/dist/src/suppress-file.js +25 -28
- package/dist/src/suppress-inline.js +3 -2
- package/dist/src/suppress.js +33 -51
- package/dist/src/sweep.js +7 -9
- package/dist/src/symbol-keys.js +3 -5
- package/dist/src/template-field.js +9 -19
- package/dist/src/test-support.js +8 -11
- package/dist/src/text/compare.js +26 -0
- package/dist/src/text/glob.js +194 -0
- package/dist/src/text/named-files.js +54 -0
- package/dist/src/text/shell.js +159 -0
- package/dist/src/text/yaml.js +393 -0
- package/dist/src/type-errors.js +11 -232
- package/dist/src/unseen-loads.js +100 -0
- package/dist/src/unwrap.js +23 -0
- package/dist/src/usage.js +10 -0
- package/dist/src/verbs/analyze.js +166 -126
- package/dist/src/verbs/describe.js +9 -16
- package/dist/src/verbs/explain.js +10 -7
- package/dist/src/verbs/print-config.js +2 -1
- package/dist/src/verbs/print-projects.js +6 -4
- package/dist/src/verbs/print-retained.js +4 -2
- package/dist/src/verbs/print-roots.js +4 -2
- package/dist/src/verbs/verb.js +1 -5
- package/dist/src/verbs/version.js +14 -3
- package/dist/src/workflow-steps.js +62 -64
- package/jsr.json +1 -1
- package/package.json +4 -3
- package/src/analysis.ts +245 -502
- package/src/augmentations.ts +135 -17
- package/src/automatic-types.ts +11 -29
- package/src/build-scripts.ts +543 -0
- package/src/component-layer.ts +4 -2
- package/src/components.ts +2 -4
- package/src/config.ts +31 -302
- package/src/configuration-files.ts +34 -179
- package/src/configured-declarations.ts +18 -23
- package/src/conformance-record.ts +1 -1
- package/src/consumers.ts +6 -57
- package/src/contextual-uses.ts +64 -12
- package/src/contract/config.generated.ts +818 -0
- package/src/contract/contract.generated.ts +1308 -0
- package/src/contract/report.generated.ts +1237 -0
- package/src/convention-rows.ts +85 -3
- package/src/conventions.ts +46 -84
- package/src/dependencies.ts +118 -46
- package/src/edges.ts +41 -140
- package/src/element-access.ts +4 -7
- package/src/entry-point-gaps.ts +3 -9
- package/src/entry-points.ts +12 -38
- package/src/enum-group.ts +2 -11
- package/src/erased-stores.ts +3 -7
- package/src/exempt-classes.ts +1 -75
- package/src/exempt.ts +36 -50
- package/src/failure.ts +63 -0
- package/src/file-facts.ts +9 -24
- package/src/finding.ts +14 -9
- package/src/findings/boundary.ts +2 -0
- package/src/findings/completion.ts +181 -84
- package/src/findings/dependencies-and-module-machinery.ts +4 -7
- package/src/findings/emitter.ts +8 -9
- package/src/findings/emitters.ts +7 -7
- package/src/findings/interfaces.ts +4 -6
- package/src/findings/intra-function.ts +13 -11
- package/src/findings/non-code-artifacts.ts +9 -11
- package/src/findings/reads-and-writes.ts +20 -16
- package/src/findings/self-check.ts +11 -17
- package/src/findings/unused-declarations.ts +45 -32
- package/src/findings/visibility-narrowing.ts +20 -17
- package/src/findings-pass.ts +10 -19
- package/src/framework-lifecycle.ts +7 -7
- package/src/fs/document.ts +70 -0
- package/src/fs/manifest.ts +92 -0
- package/src/fs/tree.ts +110 -0
- package/src/generated-file.ts +7 -4
- package/src/git-ignore.ts +50 -26
- package/src/graph.ts +5 -3
- package/src/host.ts +12 -5
- package/src/html-entries.ts +6 -33
- package/src/in-operands.ts +2 -1
- package/src/index.ts +1 -1
- package/src/injection-container.ts +1 -1
- package/src/intra-function-parts.ts +73 -44
- package/src/inventory.ts +2 -20
- package/src/javascript-file.ts +37 -0
- package/src/json-document.ts +241 -76
- package/src/keyof-comparisons.ts +3 -7
- package/src/kinds.ts +5 -413
- package/src/load/classify.ts +397 -0
- package/src/load/diagnostics.ts +144 -0
- package/src/load/discover.ts +455 -0
- package/src/{emit-map.ts → load/emit-map.ts} +1 -1
- package/src/load/expected-module.ts +188 -0
- package/src/load/load.ts +73 -0
- package/src/load/module-lookup.ts +50 -0
- package/src/load/plan.ts +504 -0
- package/src/load/specifiers.ts +168 -0
- package/src/load/synthesize.ts +211 -0
- package/src/load/test-globals.ts +251 -0
- package/src/load/test-joins.ts +98 -0
- package/src/{workspace-manifests.ts → load/workspace-manifests.ts} +5 -5
- package/src/{workspace-programs.ts → load/workspace-programs.ts} +128 -85
- package/src/{workspace-resolution.ts → load/workspace-resolution.ts} +33 -76
- package/src/{workspace-run.ts → load/workspace-run.ts} +18 -16
- package/src/{workspace.ts → load/workspace.ts} +90 -134
- package/src/manifest.ts +81 -75
- package/src/matrix.ts +122 -4
- package/src/mdx-entries.ts +3 -26
- package/src/outside-tests.ts +1 -1
- package/src/partial.ts +3 -2
- package/src/paths.ts +27 -15
- package/src/position.ts +2 -1
- package/src/print.ts +12 -92
- package/src/product.ts +18 -0
- package/src/query.ts +11 -0
- package/src/ref.ts +1 -0
- package/src/references.ts +52 -31
- package/src/report-schema.ts +68 -0
- package/src/report.ts +101 -224
- package/src/reporters/annotations.ts +22 -11
- package/src/reporters/json.ts +1 -1
- package/src/reporters/reporter.ts +2 -4
- package/src/reporters/reporters.ts +1 -1
- package/src/reporters/sarif.ts +29 -16
- package/src/reporters/template.ts +4 -20
- package/src/reporters/text.ts +3 -3
- package/src/resolve.ts +283 -1114
- package/src/roots.ts +339 -104
- package/src/run.ts +75 -91
- package/src/schema.ts +391 -388
- package/src/scope.ts +46 -138
- package/src/serialization-contract.ts +763 -22
- package/src/session.ts +70 -54
- package/src/source-files.ts +1 -1
- package/src/suppress-file.ts +24 -33
- package/src/suppress-inline.ts +2 -2
- package/src/suppress.ts +43 -58
- package/src/sweep.ts +23 -9
- package/src/symbol-keys.ts +2 -5
- package/src/template-field.ts +15 -25
- package/src/test-support.ts +17 -13
- package/src/text/compare.ts +27 -0
- package/src/text/glob.ts +210 -0
- package/src/text/named-files.inputs.json +1522 -0
- package/src/text/named-files.ts +68 -0
- package/src/text/shell.ts +161 -0
- package/src/text/yaml.ts +423 -0
- package/src/type-errors.ts +18 -288
- package/src/unseen-loads.ts +134 -0
- package/src/unwrap.ts +34 -0
- package/src/usage.ts +10 -0
- package/src/verbs/analyze.ts +224 -162
- package/src/verbs/describe.ts +14 -15
- package/src/verbs/explain.ts +10 -11
- package/src/verbs/print-config.ts +2 -1
- package/src/verbs/print-projects.ts +6 -4
- package/src/verbs/print-retained.ts +4 -2
- package/src/verbs/print-roots.ts +4 -2
- package/src/verbs/verb.ts +2 -8
- package/src/verbs/version.ts +15 -3
- package/src/workflow-steps.ts +74 -64
- package/dist/src/base-url.js +0 -18
- package/dist/src/discover.js +0 -468
- package/dist/src/glob.js +0 -65
- package/dist/src/pnpm-workspace.js +0 -120
- package/dist/src/setup-failure.js +0 -23
- package/dist/src/test-joins.js +0 -101
- package/dist/src/version.js +0 -7
- package/src/base-url.ts +0 -24
- package/src/discover.ts +0 -653
- package/src/glob.ts +0 -67
- package/src/pnpm-workspace.ts +0 -135
- package/src/setup-failure.ts +0 -39
- package/src/test-joins.ts +0 -120
- package/src/version.ts +0 -7
package/src/load/load.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { PartialConfig } from "../config.ts";
|
|
2
|
+
import type { Host } from "../host.ts";
|
|
3
|
+
import { resolvePath } from "../paths.ts";
|
|
4
|
+
import type { UnansweredQuestion } from "../query.ts";
|
|
5
|
+
import type { Scope } from "../scope.ts";
|
|
6
|
+
import { openSession, type Engine } from "../session.ts";
|
|
7
|
+
import { classify, type Classified } from "./classify.ts";
|
|
8
|
+
import { planRun, programBuilds, type RunPlan } from "./plan.ts";
|
|
9
|
+
|
|
10
|
+
/** The run as the load phase opens it, valid only inside the reader it is handed to. */
|
|
11
|
+
interface OpenedRun {
|
|
12
|
+
readonly plan: RunPlan;
|
|
13
|
+
readonly classified: Classified;
|
|
14
|
+
/**
|
|
15
|
+
* Every file a configuration read from a file holds, absolute, so a file another
|
|
16
|
+
* configuration compiles is no outside file. A program the run forms resolves no emitted
|
|
17
|
+
* output back to its source, so its files are read as outside files too.
|
|
18
|
+
*/
|
|
19
|
+
readonly runFiles: ReadonlySet<string>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** What one loaded run answered, beside its plan and its classification. */
|
|
23
|
+
export interface LoadedRun<Result> extends Omit<OpenedRun, "runFiles"> {
|
|
24
|
+
readonly result: Result;
|
|
25
|
+
/** Every question the checker could not answer, each once, in the order first asked. */
|
|
26
|
+
readonly unanswered: readonly UnansweredQuestion[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Plans the run, opens every configuration in one snapshot of one client, classifies every
|
|
31
|
+
* project, and hands the analyzed and the consumer projects to `read` while the client answers.
|
|
32
|
+
* A run that cannot be analyzed ends with one {@link FailureExit} before `read` is called.
|
|
33
|
+
*/
|
|
34
|
+
export function loadRun<Result>(
|
|
35
|
+
engine: Engine,
|
|
36
|
+
host: Host,
|
|
37
|
+
scope: Scope,
|
|
38
|
+
config: PartialConfig,
|
|
39
|
+
read: (opened: OpenedRun) => Result,
|
|
40
|
+
): LoadedRun<Result> {
|
|
41
|
+
const plan = planRun(engine, host, scope, config);
|
|
42
|
+
return openSession(
|
|
43
|
+
engine,
|
|
44
|
+
plan.plans.map((one) => one.configFile),
|
|
45
|
+
{ programs: programBuilds(host, plan.plans) },
|
|
46
|
+
(session, unanswered) => {
|
|
47
|
+
const classified = classify(
|
|
48
|
+
engine,
|
|
49
|
+
host,
|
|
50
|
+
plan,
|
|
51
|
+
new Map(session.views.map((view) => [view.configFile, view])),
|
|
52
|
+
);
|
|
53
|
+
const formed = new Set(
|
|
54
|
+
plan.plans.filter((one) => one.written !== undefined).map((one) => one.configFile),
|
|
55
|
+
);
|
|
56
|
+
const runFiles = new Set(
|
|
57
|
+
session.views
|
|
58
|
+
.filter((view) => !formed.has(view.configFile))
|
|
59
|
+
.flatMap((view) =>
|
|
60
|
+
view
|
|
61
|
+
.ownSourceFiles()
|
|
62
|
+
.map((file) => resolvePath(host.workingDirectory(), file.fileName)),
|
|
63
|
+
),
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
plan,
|
|
67
|
+
classified,
|
|
68
|
+
result: read({ plan, classified, runFiles }),
|
|
69
|
+
unanswered: unanswered(),
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a package an import names is installed and which manifests above an importer declare
|
|
3
|
+
* it: the leaf both the expected-module reading and the workspace resolution read.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { DEPENDENCY_SECTIONS, INSTALLED_PACKAGES, manifestAt } from "../fs/manifest.ts";
|
|
7
|
+
import type { Host } from "../host.ts";
|
|
8
|
+
import { isRecord } from "../json-document.ts";
|
|
9
|
+
import { ancestors, joinPath } from "../paths.ts";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The directory `node_modules/<name>` holds for an importer in `dir`: the nearest one at or
|
|
13
|
+
* above `dir`, above any target root too, that is a directory, a link to one included, as the
|
|
14
|
+
* compiler looks a package up. Undefined where no ancestor installs it.
|
|
15
|
+
*/
|
|
16
|
+
export function installedPackage(host: Host, dir: string, name: string): string | undefined {
|
|
17
|
+
return ancestors(dir)
|
|
18
|
+
.map((at) => joinPath(at, INSTALLED_PACKAGES, name))
|
|
19
|
+
.find((candidate) => host.kindOf(candidate) === "directory");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ManifestAt {
|
|
23
|
+
readonly dir: string;
|
|
24
|
+
readonly manifest: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The manifests at or above `dir` and no higher than `top`, nearest first; a directory outside
|
|
29
|
+
* `top` reads its own manifest alone.
|
|
30
|
+
*/
|
|
31
|
+
export function* manifestsAbove(host: Host, dir: string, top: string): Generator<ManifestAt> {
|
|
32
|
+
const chain = ancestors(dir, top);
|
|
33
|
+
for (const at of chain.length > 0 ? chain : [dir]) {
|
|
34
|
+
const manifest = manifestAt(host, at);
|
|
35
|
+
if (manifest !== undefined) {
|
|
36
|
+
yield { dir: at, manifest };
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** The specifiers one manifest depends on `name` with, one per dependency section naming it. */
|
|
42
|
+
export function dependencySpecifiers(
|
|
43
|
+
manifest: Readonly<Record<string, unknown>>,
|
|
44
|
+
name: string,
|
|
45
|
+
): readonly unknown[] {
|
|
46
|
+
return DEPENDENCY_SECTIONS.flatMap((section) => {
|
|
47
|
+
const declared = manifest[section];
|
|
48
|
+
return isRecord(declared) && Object.hasOwn(declared, name) ? [declared[name]] : [];
|
|
49
|
+
});
|
|
50
|
+
}
|
package/src/load/plan.ts
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
import type { CreateSnapshotProgramParams } from "@typescript/native/sync";
|
|
2
|
+
import type { PartialConfig } from "../config.ts";
|
|
3
|
+
import { readConventions, type ConventionManifest, type Conventions } from "../conventions.ts";
|
|
4
|
+
import { holdsManifest, inInstalledPackages, MANIFEST, readManifestAt } from "../fs/manifest.ts";
|
|
5
|
+
import { gitIgnored } from "../git-ignore.ts";
|
|
6
|
+
import type { Host } from "../host.ts";
|
|
7
|
+
import { packageEntries, readManifest, type Manifest, type ManifestEntry } from "../manifest.ts";
|
|
8
|
+
import {
|
|
9
|
+
ancestors,
|
|
10
|
+
dirnamePath,
|
|
11
|
+
joinPath,
|
|
12
|
+
normalizePath,
|
|
13
|
+
relativePath,
|
|
14
|
+
resolvePath,
|
|
15
|
+
} from "../paths.ts";
|
|
16
|
+
import type { Scope } from "../scope.ts";
|
|
17
|
+
import type { Engine, ProgramBuild } from "../session.ts";
|
|
18
|
+
import { bytewise } from "../text/compare.ts";
|
|
19
|
+
import { globExpression } from "../text/glob.ts";
|
|
20
|
+
import {
|
|
21
|
+
consumerWithoutSources,
|
|
22
|
+
discoverProjects,
|
|
23
|
+
isTargetConfiguration,
|
|
24
|
+
targetWithoutSources,
|
|
25
|
+
type Configuration,
|
|
26
|
+
type Discovery,
|
|
27
|
+
type LoadedConsumer,
|
|
28
|
+
type Parsed,
|
|
29
|
+
} from "./discover.ts";
|
|
30
|
+
import { FailureExit } from "../failure.ts";
|
|
31
|
+
import {
|
|
32
|
+
bundlingManifests,
|
|
33
|
+
candidateFiles,
|
|
34
|
+
formedGroups,
|
|
35
|
+
formedPrograms,
|
|
36
|
+
packageOf,
|
|
37
|
+
} from "./synthesize.ts";
|
|
38
|
+
import { joinedTestFiles, joinedTests } from "./test-joins.ts";
|
|
39
|
+
import { testGlobals } from "./test-globals.ts";
|
|
40
|
+
import { findWorkspace, withFormed, type ParsedLayout, type Workspace } from "./workspace.ts";
|
|
41
|
+
import { workspacePrograms, writtenConfiguration, writtenFileOf } from "./workspace-programs.ts";
|
|
42
|
+
import { workspaceResolver } from "./workspace-resolution.ts";
|
|
43
|
+
import { layoutOf, workspaceRun, type WorkspaceRun } from "./workspace-run.ts";
|
|
44
|
+
|
|
45
|
+
export type CompilerOptions = Parsed["options"];
|
|
46
|
+
|
|
47
|
+
/** How the snapshot builds one configuration. */
|
|
48
|
+
export type Build =
|
|
49
|
+
/** The project the compiler opens for the configuration as it stands. */
|
|
50
|
+
| { readonly kind: "project" }
|
|
51
|
+
| { readonly kind: "program"; readonly params: CreateSnapshotProgramParams }
|
|
52
|
+
/** A configuration only the snapshot holds, which extends the one it stands for. */
|
|
53
|
+
| { readonly kind: "configuration"; readonly value: Readonly<Record<string, unknown>> };
|
|
54
|
+
|
|
55
|
+
/** One configuration of the run and how the snapshot builds it. */
|
|
56
|
+
export interface ProgramPlan extends Configuration {
|
|
57
|
+
/** The options the program is built with, the parse's own with `paths` read as {@link baseUrlPaths} states. */
|
|
58
|
+
readonly options: CompilerOptions;
|
|
59
|
+
readonly build: Build;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The manifests the run reads, each once, and what they decide before any project opens. */
|
|
63
|
+
interface PackageSet {
|
|
64
|
+
/** The target's own manifest, its targets read back to source where the target is a member. */
|
|
65
|
+
readonly manifest: Manifest;
|
|
66
|
+
/** The directory of every workspace member, absolute, in the workspace's order. */
|
|
67
|
+
readonly members: readonly string[];
|
|
68
|
+
/** The directory of every nested package, absolute, in path order. */
|
|
69
|
+
readonly nested: readonly string[];
|
|
70
|
+
/** The entry points the other members' and the nested packages' manifests name. */
|
|
71
|
+
readonly entries: readonly ManifestEntry[];
|
|
72
|
+
/** The directories of the members whose manifest is not private. */
|
|
73
|
+
readonly published: ReadonlySet<string>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The workspace one consumer sits in, or the fault of a declaration that cannot be read,
|
|
78
|
+
* which ends the run only where an import's membership depends on it.
|
|
79
|
+
*/
|
|
80
|
+
type ConsumerWorkspace = { readonly workspace: Workspace | undefined } | { readonly fault: string };
|
|
81
|
+
|
|
82
|
+
/** What a run opens and how it builds each program, decided before the snapshot. */
|
|
83
|
+
export interface RunPlan {
|
|
84
|
+
readonly discovery: Discovery;
|
|
85
|
+
readonly plans: readonly ProgramPlan[];
|
|
86
|
+
readonly packages: PackageSet;
|
|
87
|
+
/** The convention rows applied per package of {@link PackageSet}. */
|
|
88
|
+
readonly conventions: Conventions;
|
|
89
|
+
readonly workspace: WorkspaceRun | undefined;
|
|
90
|
+
/** The workspace each consumer sits in, by its directory, read from its own root. */
|
|
91
|
+
readonly consumerWorkspaces: ReadonlyMap<string, ConsumerWorkspace>;
|
|
92
|
+
/** The target root, absolute. */
|
|
93
|
+
readonly root: string;
|
|
94
|
+
/**
|
|
95
|
+
* The output and declaration directories of every configuration file of the run, absolute,
|
|
96
|
+
* whose paths name build output: no formed program's candidate lies below one, and no relative
|
|
97
|
+
* specifier of a configuration that does not check its JavaScript naming one is noted.
|
|
98
|
+
*/
|
|
99
|
+
readonly outputs: readonly string[];
|
|
100
|
+
/** The inputs the run could not read, in the order it met them. */
|
|
101
|
+
readonly unread: readonly UnreadInput[];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** One input the run could not read, which the error stream names. */
|
|
105
|
+
export type UnreadInput =
|
|
106
|
+
/**
|
|
107
|
+
* A `package.json` that does not parse, or cannot be read with the read's error as `reason`,
|
|
108
|
+
* whose group's manifest facts go unanswered.
|
|
109
|
+
*/
|
|
110
|
+
| {
|
|
111
|
+
readonly kind: "manifest";
|
|
112
|
+
readonly configFile: string;
|
|
113
|
+
readonly manifest: string;
|
|
114
|
+
readonly reason: string | undefined;
|
|
115
|
+
}
|
|
116
|
+
/** An ignore file that cannot be read, which then ignores nothing. */
|
|
117
|
+
| { readonly kind: "ignore-file"; readonly path: string; readonly reason: string };
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The `paths` one configuration's resolved options map under the compilers before version
|
|
121
|
+
* 7, each target absolute: a target is read against the effective `baseUrl`, and a specifier
|
|
122
|
+
* no other pattern maps is looked up below it. Undefined where no `baseUrl` is set, so the
|
|
123
|
+
* options' own `paths` stand. Version 7 reads no `baseUrl`:
|
|
124
|
+
* https://github.com/microsoft/TypeScript/issues/62207
|
|
125
|
+
*/
|
|
126
|
+
export function baseUrlPaths(options: CompilerOptions): Record<string, string[]> | undefined {
|
|
127
|
+
const baseUrl: unknown = Reflect.get(options, "baseUrl");
|
|
128
|
+
if (typeof baseUrl !== "string") {
|
|
129
|
+
return undefined;
|
|
130
|
+
}
|
|
131
|
+
return Object.fromEntries(
|
|
132
|
+
Object.entries({ "*": ["*"], ...options.paths }).map(([key, targets]) => [
|
|
133
|
+
key,
|
|
134
|
+
targets.map((target) => resolvePath(baseUrl, target)),
|
|
135
|
+
]),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function planned(configuration: Configuration): ProgramPlan {
|
|
140
|
+
const { options } = configuration.parsed;
|
|
141
|
+
if (configuration.written !== undefined) {
|
|
142
|
+
return {
|
|
143
|
+
...configuration,
|
|
144
|
+
options,
|
|
145
|
+
build: { kind: "configuration", value: configuration.written },
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const paths = baseUrlPaths(options);
|
|
149
|
+
return {
|
|
150
|
+
...configuration,
|
|
151
|
+
options: paths === undefined ? options : { ...options, paths },
|
|
152
|
+
build:
|
|
153
|
+
paths === undefined
|
|
154
|
+
? { kind: "project" }
|
|
155
|
+
: {
|
|
156
|
+
kind: "configuration",
|
|
157
|
+
value: { extends: configuration.configFile, compilerOptions: { paths } },
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The nested packages of a run: each directory below the target root, in no `node_modules`
|
|
164
|
+
* directory and none of `known`, that holds a `package.json` and lies at or above one of
|
|
165
|
+
* `files`, in path order.
|
|
166
|
+
*/
|
|
167
|
+
function nestedPackageDirs(
|
|
168
|
+
host: Host,
|
|
169
|
+
targetRoot: string,
|
|
170
|
+
files: Iterable<string>,
|
|
171
|
+
known: ReadonlySet<string>,
|
|
172
|
+
): readonly string[] {
|
|
173
|
+
const seen = new Set<string>();
|
|
174
|
+
const found: string[] = [];
|
|
175
|
+
for (const file of files) {
|
|
176
|
+
for (const dir of ancestors(dirnamePath(file), targetRoot)) {
|
|
177
|
+
if (seen.has(dir) || relativePath(targetRoot, dir) === undefined) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
seen.add(dir);
|
|
181
|
+
const below = relativePath(targetRoot, dir) ?? "";
|
|
182
|
+
if (!inInstalledPackages(below) && !known.has(dir) && holdsManifest(host, dir)) {
|
|
183
|
+
found.push(dir);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return found.sort(bytewise);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The manifests conventions are applied from below `root`: its own, then each member's and
|
|
192
|
+
* each nested package's, each once.
|
|
193
|
+
*/
|
|
194
|
+
function conventionManifests(
|
|
195
|
+
host: Host,
|
|
196
|
+
root: string,
|
|
197
|
+
members: readonly string[],
|
|
198
|
+
nested: readonly string[],
|
|
199
|
+
): readonly ConventionManifest[] {
|
|
200
|
+
const found = new Map<string, ConventionManifest>();
|
|
201
|
+
if (holdsManifest(host, root)) {
|
|
202
|
+
found.set(root, { dir: root, path: MANIFEST });
|
|
203
|
+
}
|
|
204
|
+
for (const [dirs, isNested] of [
|
|
205
|
+
[members, false],
|
|
206
|
+
[nested, true],
|
|
207
|
+
] as const) {
|
|
208
|
+
for (const dir of dirs) {
|
|
209
|
+
const below = relativePath(root, dir);
|
|
210
|
+
if (below !== undefined && !found.has(dir)) {
|
|
211
|
+
found.set(dir, { dir, path: `${below}/${MANIFEST}`, nested: isNested });
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return [...found.values()];
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The workspace one consumer sits in, read from its own root with `parse` reading its members'
|
|
220
|
+
* configurations, the target's reused, and any other given the programs of `formed` as
|
|
221
|
+
* {@link withFormed} does.
|
|
222
|
+
*/
|
|
223
|
+
function consumerWorkspace(
|
|
224
|
+
host: Host,
|
|
225
|
+
consumer: LoadedConsumer,
|
|
226
|
+
target: Workspace | undefined,
|
|
227
|
+
parse: (configFile: string) => ParsedLayout | undefined,
|
|
228
|
+
formed: ReadonlyMap<string, readonly ParsedLayout[]>,
|
|
229
|
+
): ConsumerWorkspace {
|
|
230
|
+
try {
|
|
231
|
+
const found = findWorkspace(host, consumer.path, parse, target);
|
|
232
|
+
return {
|
|
233
|
+
workspace: found === undefined || found === target ? found : withFormed(host, found, formed),
|
|
234
|
+
};
|
|
235
|
+
} catch (error: unknown) {
|
|
236
|
+
if (!(error instanceof FailureExit)) {
|
|
237
|
+
throw error;
|
|
238
|
+
}
|
|
239
|
+
return { fault: error.failures[0].detail };
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* How the snapshot builds each program formed for a consumer that sits in a workspace, its
|
|
245
|
+
* member imports read from source as the target's are. A consumer's configuration read from a
|
|
246
|
+
* file resolves a member through what is installed, as the compiler does.
|
|
247
|
+
*/
|
|
248
|
+
function consumerPrograms(
|
|
249
|
+
engine: Engine,
|
|
250
|
+
host: Host,
|
|
251
|
+
plans: readonly ProgramPlan[],
|
|
252
|
+
places: ReadonlyMap<string, ConsumerWorkspace>,
|
|
253
|
+
): ReadonlyMap<string, Exclude<Build, { readonly kind: "project" }>> {
|
|
254
|
+
const byRoot = new Map<string, { workspace: Workspace; plans: ProgramPlan[] }>();
|
|
255
|
+
for (const plan of plans) {
|
|
256
|
+
const place = plan.consumer === undefined ? undefined : places.get(plan.consumer.path);
|
|
257
|
+
if (plan.written === undefined || place === undefined || !("workspace" in place)) {
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
const { workspace } = place;
|
|
261
|
+
if (workspace !== undefined) {
|
|
262
|
+
const held = byRoot.get(workspace.root) ?? { workspace, plans: [] };
|
|
263
|
+
held.plans.push(plan);
|
|
264
|
+
byRoot.set(workspace.root, held);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return new Map(
|
|
268
|
+
[...byRoot.values()].flatMap(({ workspace, plans: held }) => [
|
|
269
|
+
...workspacePrograms(engine, host, held, workspaceResolver(host, workspace)).programs,
|
|
270
|
+
]),
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
function outputsOf({ parsed }: Configuration): readonly string[] {
|
|
275
|
+
return [parsed.options.outDir, parsed.options.declarationDir].filter((dir) => dir !== undefined);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* The plan of one run: the configurations discovery names and the programs formed for the
|
|
280
|
+
* JavaScript files none lists, each built through the steps in order (the `baseUrl` paths,
|
|
281
|
+
* the workspace members read from source, the test runner's globals, the joined test files),
|
|
282
|
+
* the package set and the convention rows. A formed program's files wait for the joins and
|
|
283
|
+
* the rows, and its module system is fixed before any workspace round reads it. A nested
|
|
284
|
+
* package is one at or above a file a target configuration lists, joins or is formed over.
|
|
285
|
+
*/
|
|
286
|
+
export function planRun(engine: Engine, host: Host, scope: Scope, config: PartialConfig): RunPlan {
|
|
287
|
+
const discovery = discoverProjects(engine, host, scope, config.analysis.configurations);
|
|
288
|
+
const root = resolvePath(host.workingDirectory(), scope.target.path);
|
|
289
|
+
const parse = (fileName: string, text: string) => engine.parseSourceFile(fileName, text);
|
|
290
|
+
const disabled = config.ts.disabled_conventions;
|
|
291
|
+
const outputs = discovery.configurations.flatMap(outputsOf);
|
|
292
|
+
const unread: UnreadInput[] = [];
|
|
293
|
+
const ignoredBelow = (dir: string): ((path: string) => boolean) =>
|
|
294
|
+
gitIgnored(host, dir, (path, reason) => {
|
|
295
|
+
if (!unread.some((one) => one.kind === "ignore-file" && one.path === path)) {
|
|
296
|
+
unread.push({ kind: "ignore-file", path, reason });
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
// Before any target step, so a consumer's failure is the one named, as discoverProjects orders them.
|
|
300
|
+
const consumerFormed = discovery.unconfigured.flatMap((consumer) => {
|
|
301
|
+
const consumerRoot = resolvePath(host.workingDirectory(), consumer.path);
|
|
302
|
+
const files = candidateFiles(host, consumerRoot, {
|
|
303
|
+
covered: new Set(),
|
|
304
|
+
outputs,
|
|
305
|
+
ignored: ignoredBelow(consumerRoot),
|
|
306
|
+
});
|
|
307
|
+
const rows = readConventions(
|
|
308
|
+
host,
|
|
309
|
+
parse,
|
|
310
|
+
conventionManifests(
|
|
311
|
+
host,
|
|
312
|
+
consumerRoot,
|
|
313
|
+
[],
|
|
314
|
+
[...new Set(files.map((file) => packageOf(host, consumerRoot, file)))].filter(
|
|
315
|
+
(dir) => dir !== consumerRoot,
|
|
316
|
+
),
|
|
317
|
+
),
|
|
318
|
+
disabled,
|
|
319
|
+
);
|
|
320
|
+
const programs = formedPrograms(engine, host, formedGroups(host, consumerRoot, files, rows), {
|
|
321
|
+
root: consumerRoot,
|
|
322
|
+
origin: "consumer",
|
|
323
|
+
bundling: bundlingManifests(rows),
|
|
324
|
+
idOf: (path) => path ?? consumerRoot,
|
|
325
|
+
});
|
|
326
|
+
if (programs.length === 0) {
|
|
327
|
+
throw consumerWithoutSources(consumer.path);
|
|
328
|
+
}
|
|
329
|
+
return programs.map((one) => ({ ...one, configuration: { ...one.configuration, consumer } }));
|
|
330
|
+
});
|
|
331
|
+
const readTargets = discovery.configurations.filter(isTargetConfiguration);
|
|
332
|
+
const manifest = readManifest(host, scope.target.path);
|
|
333
|
+
const found = findWorkspace(host, root, (configFile) => layoutOf(engine, configFile));
|
|
334
|
+
const joins =
|
|
335
|
+
discovery.mode === "derived"
|
|
336
|
+
? joinedTestFiles(host, root, readTargets, config.ts.test_files.map(globExpression))
|
|
337
|
+
: new Map<string, readonly string[]>();
|
|
338
|
+
const targetIgnored = ignoredBelow(root);
|
|
339
|
+
const covered = new Set([
|
|
340
|
+
...readTargets.flatMap(({ parsed }) => parsed.fileNames),
|
|
341
|
+
...[...joins.values()].flat(),
|
|
342
|
+
]);
|
|
343
|
+
const trees = discovery.targets.flatMap((target) => {
|
|
344
|
+
if (target.kind === "configuration") {
|
|
345
|
+
return [];
|
|
346
|
+
}
|
|
347
|
+
const dir = target.kind === "derived" ? root : dirnamePath(target.manifest);
|
|
348
|
+
const files = candidateFiles(host, dir, { covered, outputs, ignored: targetIgnored });
|
|
349
|
+
return [
|
|
350
|
+
{
|
|
351
|
+
target,
|
|
352
|
+
dir,
|
|
353
|
+
files:
|
|
354
|
+
target.kind === "derived"
|
|
355
|
+
? files
|
|
356
|
+
: files.filter((file) => packageOf(host, dir, file) === dir),
|
|
357
|
+
},
|
|
358
|
+
];
|
|
359
|
+
});
|
|
360
|
+
const members = found?.members.map((member) => member.dir) ?? [];
|
|
361
|
+
const nested = nestedPackageDirs(
|
|
362
|
+
host,
|
|
363
|
+
normalizePath(root),
|
|
364
|
+
[
|
|
365
|
+
...readTargets.flatMap((plan) => [
|
|
366
|
+
plan.configFile,
|
|
367
|
+
...plan.parsed.fileNames,
|
|
368
|
+
...(joins.get(plan.configFile) ?? []),
|
|
369
|
+
]),
|
|
370
|
+
...trees.flatMap(({ files }) => files),
|
|
371
|
+
],
|
|
372
|
+
new Set(members),
|
|
373
|
+
);
|
|
374
|
+
const conventions = readConventions(
|
|
375
|
+
host,
|
|
376
|
+
parse,
|
|
377
|
+
conventionManifests(host, root, members, nested),
|
|
378
|
+
disabled,
|
|
379
|
+
);
|
|
380
|
+
const bundling = bundlingManifests(conventions);
|
|
381
|
+
const formedFor = new Map(
|
|
382
|
+
trees.map(({ target, dir, files }) => {
|
|
383
|
+
const groups = formedGroups(host, dir, files, conventions);
|
|
384
|
+
const programs = formedPrograms(
|
|
385
|
+
engine,
|
|
386
|
+
host,
|
|
387
|
+
target.kind === "declared"
|
|
388
|
+
? [groups[0] ?? { dir, manifest: readManifestAt(host, dir), files: [] }]
|
|
389
|
+
: groups,
|
|
390
|
+
{
|
|
391
|
+
root,
|
|
392
|
+
origin: target.kind,
|
|
393
|
+
bundling,
|
|
394
|
+
idOf: (path) =>
|
|
395
|
+
target.kind === "declared"
|
|
396
|
+
? target.id
|
|
397
|
+
: path === undefined
|
|
398
|
+
? "."
|
|
399
|
+
: (relativePath(root, path) ?? path),
|
|
400
|
+
},
|
|
401
|
+
);
|
|
402
|
+
return [target, programs] as const;
|
|
403
|
+
}),
|
|
404
|
+
);
|
|
405
|
+
const targetFormed = [...formedFor.values()].flat();
|
|
406
|
+
if (readTargets.length + targetFormed.length === 0 && discovery.notBuilt.length === 0) {
|
|
407
|
+
throw targetWithoutSources(scope.target.path);
|
|
408
|
+
}
|
|
409
|
+
for (const { configuration, group } of [...targetFormed, ...consumerFormed]) {
|
|
410
|
+
if (group.manifest.kind === "malformed" || group.manifest.kind === "unread") {
|
|
411
|
+
unread.push({
|
|
412
|
+
kind: "manifest",
|
|
413
|
+
configFile: configuration.configFile,
|
|
414
|
+
manifest: joinPath(group.dir, MANIFEST),
|
|
415
|
+
reason: group.manifest.kind === "unread" ? group.manifest.reason : undefined,
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
let plans: readonly ProgramPlan[] = [
|
|
420
|
+
...discovery.targets.flatMap((target) =>
|
|
421
|
+
target.kind === "configuration"
|
|
422
|
+
? [target.configuration]
|
|
423
|
+
: (formedFor.get(target) ?? []).map(({ configuration }) => configuration),
|
|
424
|
+
),
|
|
425
|
+
...discovery.configurations.filter((one) => !isTargetConfiguration(one)),
|
|
426
|
+
...consumerFormed.map(({ configuration }) => configuration),
|
|
427
|
+
].map(planned);
|
|
428
|
+
const formedLayouts = new Map<string, ParsedLayout[]>();
|
|
429
|
+
for (const { configuration, group } of [...targetFormed, ...consumerFormed]) {
|
|
430
|
+
formedLayouts.set(group.dir, [
|
|
431
|
+
...(formedLayouts.get(group.dir) ?? []),
|
|
432
|
+
{ fileNames: configuration.parsed.fileNames },
|
|
433
|
+
]);
|
|
434
|
+
}
|
|
435
|
+
const workspace = workspaceRun(
|
|
436
|
+
engine,
|
|
437
|
+
host,
|
|
438
|
+
root,
|
|
439
|
+
plans.filter(isTargetConfiguration),
|
|
440
|
+
manifest,
|
|
441
|
+
found === undefined ? undefined : withFormed(host, found, formedLayouts),
|
|
442
|
+
);
|
|
443
|
+
const consumerWorkspaces = new Map(
|
|
444
|
+
discovery.consumers.map((consumer) => [
|
|
445
|
+
consumer.path,
|
|
446
|
+
consumerWorkspace(
|
|
447
|
+
host,
|
|
448
|
+
consumer,
|
|
449
|
+
workspace?.workspace,
|
|
450
|
+
discovery.unconfigured.includes(consumer)
|
|
451
|
+
? (configFile) => layoutOf(engine, configFile)
|
|
452
|
+
: () => undefined,
|
|
453
|
+
formedLayouts,
|
|
454
|
+
),
|
|
455
|
+
]),
|
|
456
|
+
);
|
|
457
|
+
const consumerBuilds = consumerPrograms(engine, host, plans, consumerWorkspaces);
|
|
458
|
+
plans = plans.map((plan) => {
|
|
459
|
+
const build = workspace?.programs.get(plan.configFile) ?? consumerBuilds.get(plan.configFile);
|
|
460
|
+
return build === undefined ? plan : { ...plan, build };
|
|
461
|
+
});
|
|
462
|
+
plans = testGlobals(host, parse, plans);
|
|
463
|
+
plans = joinedTests(plans, joins);
|
|
464
|
+
const packages: PackageSet = {
|
|
465
|
+
manifest: workspace?.manifest ?? manifest,
|
|
466
|
+
members,
|
|
467
|
+
nested,
|
|
468
|
+
entries: [...(workspace?.entries ?? []), ...packageEntries(host, normalizePath(root), nested)],
|
|
469
|
+
published: new Set(
|
|
470
|
+
(workspace?.entries ?? []).filter((entry) => entry.published).map((entry) => entry.dir),
|
|
471
|
+
),
|
|
472
|
+
};
|
|
473
|
+
return {
|
|
474
|
+
discovery,
|
|
475
|
+
plans,
|
|
476
|
+
packages,
|
|
477
|
+
conventions,
|
|
478
|
+
workspace,
|
|
479
|
+
consumerWorkspaces,
|
|
480
|
+
root,
|
|
481
|
+
outputs,
|
|
482
|
+
unread,
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** How the snapshot builds each planned configuration other than by opening its project. */
|
|
487
|
+
export function programBuilds(
|
|
488
|
+
host: Host,
|
|
489
|
+
plans: readonly ProgramPlan[],
|
|
490
|
+
): ReadonlyMap<string, ProgramBuild> {
|
|
491
|
+
const builds = new Map<string, ProgramBuild>();
|
|
492
|
+
const formed = new Set(
|
|
493
|
+
plans.filter((plan) => plan.written !== undefined).map((plan) => plan.configFile),
|
|
494
|
+
);
|
|
495
|
+
for (const plan of plans) {
|
|
496
|
+
const { configFile, build } = plan;
|
|
497
|
+
if (build.kind === "program") {
|
|
498
|
+
builds.set(configFile, build);
|
|
499
|
+
} else if (build.kind === "configuration") {
|
|
500
|
+
builds.set(configFile, writtenConfiguration(writtenFileOf(host, plan, formed), build.value));
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return builds;
|
|
504
|
+
}
|