@systemfsoftware/stryker-js-typescript-checker 8.2.1 → 9.0.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/CHANGELOG.md +55 -0
- package/README.md +69 -4
- package/dist/index.d.mts +7 -7
- package/dist/main.mjs +10938 -7008
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/runtime.d.mts +32 -13
- package/dist/runtime.mjs +44 -1583
- package/dist/type-query.d.mts +12 -0
- package/dist/type-query.handle-DrgF8cok.mjs +3551 -0
- package/dist/type-query.mjs +2 -0
- package/package.json +35 -28
- package/schema/typescript-checker-options.json +8 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/dist/runtime.d.mts
CHANGED
|
@@ -1,22 +1,33 @@
|
|
|
1
|
+
import * as Context from "effect/Context";
|
|
1
2
|
import { Handle, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
2
3
|
import { Source } from "@systemfsoftware/stryker-js-instrumenter";
|
|
3
|
-
import { Checker, Options } from "@systemfsoftware/stryker-js-plugin-interface";
|
|
4
|
-
import * as Context from "effect/Context";
|
|
4
|
+
import { Checker, Options, TypeQuery } from "@systemfsoftware/stryker-js-plugin-interface";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as FileSystem$1 from "effect/FileSystem";
|
|
7
7
|
import * as HashMap from "effect/HashMap";
|
|
8
|
-
import * as
|
|
8
|
+
import * as HashSet from "effect/HashSet";
|
|
9
9
|
import * as Option from "effect/Option";
|
|
10
10
|
import * as Path from "effect/Path";
|
|
11
11
|
import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
|
|
12
|
+
import * as Ref from "effect/Ref";
|
|
13
|
+
import "effect/Result";
|
|
12
14
|
import "effect/Schema";
|
|
13
|
-
import * as HashSet from "effect/HashSet";
|
|
14
15
|
import * as SynchronizedRef from "effect/SynchronizedRef";
|
|
15
16
|
import { API, Snapshot } from "typescript/unstable/async";
|
|
16
17
|
import { Schema } from "effect";
|
|
17
18
|
import * as DateTime from "effect/DateTime";
|
|
19
|
+
import * as Layer from "effect/Layer";
|
|
18
20
|
import * as Cause from "effect/Cause";
|
|
19
21
|
import { FileSystem } from "typescript/unstable/fs";
|
|
22
|
+
//#region src/CheckerRuntime.service.d.ts
|
|
23
|
+
interface CheckerRuntimeShape {
|
|
24
|
+
readonly checker: Effect.Effect<Checker.Checker['Service'], Cause.Cause<Checker.CheckerFailed>>;
|
|
25
|
+
readonly capabilities: TypeQuery.CheckerCapabilities;
|
|
26
|
+
readonly typeQuery: Effect.Effect<TypeQuery.TypeQueryShape>;
|
|
27
|
+
}
|
|
28
|
+
declare const CheckerRuntime_base: Context.ServiceClass<CheckerRuntime, "@systemfsoftware/stryker-js-typescript-checker/CheckerRuntime.service/CheckerRuntime", CheckerRuntimeShape>;
|
|
29
|
+
export declare class CheckerRuntime extends CheckerRuntime_base {}
|
|
30
|
+
//#endregion
|
|
20
31
|
//#region src/CheckMutants.schema.d.ts
|
|
21
32
|
interface NodeDecodedShape {
|
|
22
33
|
readonly fileName: string;
|
|
@@ -24,6 +35,10 @@ interface NodeDecodedShape {
|
|
|
24
35
|
readonly children: readonly NodeDecodedShape[];
|
|
25
36
|
}
|
|
26
37
|
//#endregion
|
|
38
|
+
//#region src/Tsconfig.schema.d.ts
|
|
39
|
+
declare const ReferenceGraph: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
40
|
+
type ReferenceGraph = typeof ReferenceGraph.Type;
|
|
41
|
+
//#endregion
|
|
27
42
|
//#region src/ts-files.handle.d.ts
|
|
28
43
|
declare const TypeId$1: unique symbol;
|
|
29
44
|
type TypeId$1 = typeof TypeId$1;
|
|
@@ -67,8 +82,15 @@ interface CompilerState {
|
|
|
67
82
|
readonly lastMutatedFileNames: ReadonlyArray<string>;
|
|
68
83
|
readonly allTSConfigFiles: HashSet.HashSet<string>;
|
|
69
84
|
readonly aliases: ReadonlyArray<PathAlias>;
|
|
85
|
+
readonly references: ReferenceGraph;
|
|
70
86
|
readonly tsconfigFile: string;
|
|
71
87
|
}
|
|
88
|
+
interface CheckTally {
|
|
89
|
+
readonly snapshotUpdates: number;
|
|
90
|
+
readonly resplices: number;
|
|
91
|
+
readonly tceBuilds: number;
|
|
92
|
+
readonly tceMs: number;
|
|
93
|
+
}
|
|
72
94
|
interface TSCompilerRuntime {
|
|
73
95
|
readonly options: Options.StrykerOptions;
|
|
74
96
|
readonly host: FileSystem$1.FileSystem;
|
|
@@ -77,6 +99,7 @@ interface TSCompilerRuntime {
|
|
|
77
99
|
readonly files: TSFiles;
|
|
78
100
|
readonly sourceFileSystem: FileSystem;
|
|
79
101
|
readonly state: SynchronizedRef.SynchronizedRef<CompilerState>;
|
|
102
|
+
readonly tally: Ref.Ref<CheckTally>;
|
|
80
103
|
}
|
|
81
104
|
declare const TSCompiler: Handle.Definition<typeof TypeId, object, TSCompilerRuntime, never>;
|
|
82
105
|
type TSCompiler = Handle.Of<typeof TSCompiler>;
|
|
@@ -91,14 +114,10 @@ export declare const nodes: (self: Handle.Handle<typeof TypeId, object, TSCompil
|
|
|
91
114
|
interface TypeScriptCompilerShape extends TSCompiler {}
|
|
92
115
|
declare const TypeScriptCompiler_base: Context.ServiceClass<TypeScriptCompiler, "@systemfsoftware/stryker-js-typescript-checker/ts-compiler.service/TypeScriptCompiler", TypeScriptCompilerShape>;
|
|
93
116
|
export declare class TypeScriptCompiler extends TypeScriptCompiler_base {}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
interface CheckerRuntimeShape {
|
|
97
|
-
readonly checker: Effect.Effect<Checker.Checker['Service'], Cause.Cause<Checker.CheckerFailed>>;
|
|
98
|
-
}
|
|
99
|
-
declare const CheckerRuntime_base: Context.ServiceClass<CheckerRuntime, "@systemfsoftware/stryker-js-typescript-checker/CheckerRuntime.service/CheckerRuntime", CheckerRuntimeShape>;
|
|
100
|
-
export declare class CheckerRuntime extends CheckerRuntime_base {
|
|
101
|
-
static readonly layer: (options: Options.StrykerOptions) => Layer.Layer<CheckerRuntime | TypeScriptCompiler, never, FileSystem$1.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner>;
|
|
117
|
+
declare namespace typescript_checker_runtime_d_exports {
|
|
118
|
+
export { layer, make };
|
|
102
119
|
}
|
|
120
|
+
declare const make: (compiler: TSCompiler) => Effect.Effect<Checker.Checker['Service'], Checker.CheckerFailed>;
|
|
121
|
+
declare const layer: (options: Options.StrykerOptions) => Layer.Layer<CheckerRuntime | TypeScriptCompiler, never, FileSystem$1.FileSystem | Path.Path | ChildProcessSpawner.ChildProcessSpawner>;
|
|
103
122
|
//#endregion
|
|
104
|
-
export type
|
|
123
|
+
export { type CheckerRuntimeShape, type TSCompiler, typescript_checker_runtime_d_exports as TypeScriptCheckerRuntime };
|