@systemfsoftware/stryker-js-typescript-checker 5.0.1 → 5.0.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/CHANGELOG.md +7 -0
- package/dist/index.mjs +10 -10
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import * as FileSystem from "effect/FileSystem";
|
|
|
5
5
|
import * as Layer from "effect/Layer";
|
|
6
6
|
import * as Path from "effect/Path";
|
|
7
7
|
import * as S from "effect/Schema";
|
|
8
|
-
import { Cell,
|
|
8
|
+
import { Cell, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
9
9
|
import { Mutant, errorToString, normalizeFileName } from "@systemfsoftware/stryker-js/Mutant";
|
|
10
10
|
import { Predicate, Result, Schema } from "effect";
|
|
11
11
|
import * as HashMap from "effect/HashMap";
|
|
@@ -42,20 +42,20 @@ var typescript_checker_options_default = {
|
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/CheckMutants.schema.ts
|
|
44
44
|
/** A file name the node map can be keyed by: non-empty, and naming an extension. */
|
|
45
|
-
const SourceFileSchema =
|
|
46
|
-
const DiagnosticSchema =
|
|
47
|
-
fileName:
|
|
48
|
-
text:
|
|
45
|
+
const SourceFileSchema = S.NonEmptyString.pipe(S.check(S.isPattern(/\.[^./\\]+$/)));
|
|
46
|
+
const DiagnosticSchema = S.Struct({
|
|
47
|
+
fileName: S.optional(SourceFileSchema),
|
|
48
|
+
text: S.String
|
|
49
49
|
});
|
|
50
|
-
const TSFileNodeSchema =
|
|
50
|
+
const TSFileNodeSchema = S.suspend(() => S.Struct({
|
|
51
51
|
fileName: SourceFileSchema,
|
|
52
|
-
parents:
|
|
53
|
-
children:
|
|
54
|
-
}))
|
|
52
|
+
parents: S.Array(TSFileNodeSchema),
|
|
53
|
+
children: S.Array(TSFileNodeSchema)
|
|
54
|
+
}));
|
|
55
55
|
var CheckMutantsInput = class extends S.TaggedClass()("CheckMutantsInput", {
|
|
56
56
|
mutants: S.Array(Mutant),
|
|
57
57
|
diagnostics: S.Array(DiagnosticSchema),
|
|
58
|
-
nodes:
|
|
58
|
+
nodes: S.Record(SourceFileSchema, TSFileNodeSchema)
|
|
59
59
|
}) {};
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/check-mutants.workflow.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js-typescript-checker",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"effect": "4.0.0-rc.112",
|
|
24
24
|
"typescript": "^7",
|
|
25
|
-
"@systemfsoftware/effect-cell-types": "^
|
|
26
|
-
"@systemfsoftware/stryker-js": "^3.0.
|
|
25
|
+
"@systemfsoftware/effect-cell-types": "^7.0.0",
|
|
26
|
+
"@systemfsoftware/stryker-js": "^3.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@effect/platform-node": "4.0.0-rc.112",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"tsdown": "^0.22.14",
|
|
37
37
|
"vitest": "^4",
|
|
38
38
|
"@systemfsoftware/effect-gherkin-spec": "^4.0.1",
|
|
39
|
+
"@systemfsoftware/effect-schema-law": "^2.1.0",
|
|
40
|
+
"@systemfsoftware/effect-schema-vite": "^2.1.0",
|
|
39
41
|
"@systemfsoftware/all": "^2.0.0",
|
|
40
|
-
"@systemfsoftware/effect-schema-law": "^2.0.2",
|
|
41
42
|
"@systemfsoftware/oxlint-config": "^0.1.0",
|
|
42
|
-
"@systemfsoftware/
|
|
43
|
-
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
44
|
-
"@systemfsoftware/tsconfig": "^1.3.3"
|
|
43
|
+
"@systemfsoftware/tsconfig": "^1.3.3",
|
|
44
|
+
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
45
45
|
},
|
|
46
46
|
"inlinedDependencies": {
|
|
47
47
|
"@jsr/std__jsonc": "1.0.2"
|