@systemfsoftware/stryker-js-typescript-checker 1.2.3 → 1.4.0
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 +65 -0
- package/LICENSE +203 -21
- package/README.md +31 -0
- package/dist/index.d.mts +19 -19
- package/dist/index.mjs +132 -120
- package/package.json +24 -11
- package/.turbo/turbo-build.log +0 -21
- package/AGENTS.md +0 -7
- package/oxlint.config.ts +0 -9
- package/src/fs/hybrid-file-system.ts +0 -118
- package/src/fs/index.ts +0 -2
- package/src/fs/script-file.ts +0 -44
- package/src/grouping/create-groups.ts +0 -77
- package/src/grouping/ts-file-node.ts +0 -54
- package/src/index.ts +0 -18
- package/src/plugin-tokens.ts +0 -2
- package/src/tsconfig-helpers.ts +0 -187
- package/src/typescript-checker-options-with-stryker-options.ts +0 -9
- package/src/typescript-checker.ts +0 -223
- package/src/typescript-compiler.ts +0 -412
- package/test/integration/e2e-plugin-entry.it.spec.ts +0 -153
- package/test/integration/nodenext-project.it.spec.ts +0 -101
- package/test/integration/project-references.it.spec.ts +0 -146
- package/test/integration/project-with-ts-buildinfo.it.spec.ts +0 -92
- package/test/integration/single-project.it.spec.ts +0 -298
- package/test/integration/tsconfig-helpers.it.spec.ts +0 -218
- package/test/integration/typescript-checkers-errors.it.spec.ts +0 -112
- package/test/unit/fs/hybrid-file-system.spec.ts +0 -109
- package/test/unit/grouping/create-groups.spec.ts +0 -122
- package/test/unit/grouping/ts-file-node.spec.ts +0 -132
- package/testResources/errors/compile-error/add.ts +0 -3
- package/testResources/errors/compile-error/tsconfig.json +0 -5
- package/testResources/errors/empty-dir/.gitkeep +0 -0
- package/testResources/errors/invalid-tsconfig/tsconfig.json +0 -1
- package/testResources/nodenext-project/package.json +0 -6
- package/testResources/nodenext-project/src/index.ts +0 -5
- package/testResources/nodenext-project/src/util.ts +0 -3
- package/testResources/nodenext-project/tsconfig.json +0 -16
- package/testResources/project-references/src/index.ts +0 -5
- package/testResources/project-references/src/job.ts +0 -6
- package/testResources/project-references/src/tsconfig.json +0 -10
- package/testResources/project-references/tsconfig.root.json +0 -7
- package/testResources/project-references/tsconfig.settings.json +0 -15
- package/testResources/project-references/utils/math.ts +0 -3
- package/testResources/project-references/utils/text.ts +0 -3
- package/testResources/project-references/utils/tsconfig.json +0 -7
- package/testResources/project-with-ts-buildinfo/src/index.ts +0 -3
- package/testResources/project-with-ts-buildinfo/tsconfig.json +0 -15
- package/testResources/single-project/src/counter.ts +0 -9
- package/testResources/single-project/src/errorInFileAbove2Mutants/counter.ts +0 -9
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo-counter.ts +0 -7
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo.spec.ts +0 -11
- package/testResources/single-project/src/errorInFileAbove2Mutants/todo.ts +0 -22
- package/testResources/single-project/src/not-type-checked.js +0 -1
- package/testResources/single-project/src/todo.spec.ts +0 -11
- package/testResources/single-project/src/todo.ts +0 -22
- package/testResources/single-project/tsconfig.json +0 -15
- package/tsconfig.json +0 -26
- package/tsdown.config.ts +0 -16
- package/vitest.config.ts +0 -13
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
invalid tsconfig file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"strict": true,
|
|
5
|
-
"module": "NodeNext",
|
|
6
|
-
|
|
7
|
-
// `moduleResolution` is deliberately absent and `target` is deliberately newer
|
|
8
|
-
// than es2022: the checker must not supply either. See nodenext-project.it.spec.ts.
|
|
9
|
-
"target": "es2024",
|
|
10
|
-
|
|
11
|
-
"verbatimModuleSyntax": true,
|
|
12
|
-
"outDir": "dist",
|
|
13
|
-
"types": []
|
|
14
|
-
},
|
|
15
|
-
"include": ["src/**/*.ts"]
|
|
16
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"composite": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
|
|
9
|
-
// These settings should be overridden by the typescript checker
|
|
10
|
-
"noUnusedLocals": true,
|
|
11
|
-
"noUnusedParameters": true,
|
|
12
|
-
|
|
13
|
-
"types": []
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "dist",
|
|
6
|
-
|
|
7
|
-
// These settings should be overridden by the typescript checker
|
|
8
|
-
"noUnusedLocals": true,
|
|
9
|
-
"noUnusedParameters": true,
|
|
10
|
-
|
|
11
|
-
"types": [],
|
|
12
|
-
"incremental": true,
|
|
13
|
-
"tsBuildInfoFile": "do-not-delete.tsbuildinfo"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TodoList } from './todo.js'
|
|
2
|
-
|
|
3
|
-
const list = new TodoList()
|
|
4
|
-
const n: number = list.createTodoItem('Mow lawn', 'Mow moving forward.')
|
|
5
|
-
console.log(n)
|
|
6
|
-
|
|
7
|
-
function addTodo(name = 'test', description = 'test') {
|
|
8
|
-
list.createTodoItem(name, description)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
addTodo()
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ITodo {
|
|
2
|
-
name: string
|
|
3
|
-
description: string
|
|
4
|
-
completed: boolean
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
class Todo implements ITodo {
|
|
8
|
-
constructor(public name: string, public description: string, public completed: boolean) {}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class TodoList {
|
|
12
|
-
public static allTodos: Todo[] = []
|
|
13
|
-
createTodoItem(name: string, description: string) {
|
|
14
|
-
let newItem = new Todo(name, description, false)
|
|
15
|
-
let totalCount: number = TodoList.allTodos.push(newItem)
|
|
16
|
-
return totalCount
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
allTodoItems(): ITodo[] {
|
|
20
|
-
return TodoList.allTodos
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const foo = 'bar'
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TodoList } from './todo.js'
|
|
2
|
-
|
|
3
|
-
const list = new TodoList()
|
|
4
|
-
const n: number = list.createTodoItem('Mow lawn', 'Mow moving forward.')
|
|
5
|
-
console.log(n)
|
|
6
|
-
|
|
7
|
-
function addTodo(name = 'test', description = 'test') {
|
|
8
|
-
list.createTodoItem(name, description)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
addTodo()
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ITodo {
|
|
2
|
-
name: string
|
|
3
|
-
description: string
|
|
4
|
-
completed: boolean
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
class Todo implements ITodo {
|
|
8
|
-
constructor(public name: string, public description: string, public completed: boolean) {}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class TodoList {
|
|
12
|
-
public static allTodos: Todo[] = []
|
|
13
|
-
createTodoItem(name: string, description: string) {
|
|
14
|
-
let newItem = new Todo(name, description, false)
|
|
15
|
-
let totalCount: number = TodoList.allTodos.push(newItem)
|
|
16
|
-
return totalCount
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
allTodoItems(): ITodo[] {
|
|
20
|
-
return TodoList.allTodos
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"strict": true,
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"outDir": "dist",
|
|
7
|
-
|
|
8
|
-
// These settings should be overridden by the typescript checker
|
|
9
|
-
"noUnusedLocals": true,
|
|
10
|
-
"noUnusedParameters": true,
|
|
11
|
-
|
|
12
|
-
"types": []
|
|
13
|
-
},
|
|
14
|
-
"include": ["src/**/*.ts"]
|
|
15
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@systemfsoftware/tsconfig/tsc/no-dom/library",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"rootDir": ".",
|
|
6
|
-
"types": [
|
|
7
|
-
"node"
|
|
8
|
-
],
|
|
9
|
-
// Fork of @stryker-mutator/typescript-checker: the leaf AGENTS.md mandates a minimal upstream
|
|
10
|
-
// diff, so the constitution policy in @systemfsoftware/tsconfig/effect is deliberately NOT
|
|
11
|
-
// extended here. The Effect Language Service runs at its own defaults — correctness tier only.
|
|
12
|
-
"plugins": [
|
|
13
|
-
{
|
|
14
|
-
"name": "@effect/language-service"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"include": [
|
|
19
|
-
"src",
|
|
20
|
-
"test"
|
|
21
|
-
],
|
|
22
|
-
"exclude": [
|
|
23
|
-
"node_modules",
|
|
24
|
-
"dist"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/tsdown.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsdown'
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
entry: {
|
|
5
|
-
index: './src/index.ts',
|
|
6
|
-
},
|
|
7
|
-
format: 'esm',
|
|
8
|
-
dts: true,
|
|
9
|
-
exports: { devExports: '@systemfsoftware/source' },
|
|
10
|
-
// `jsr:` specs publish as `npm:@jsr/std__jsonc@…`, which exists only on npm.jsr.io, so a
|
|
11
|
-
// default-registry consumer cannot install it. Inlining the parser (a leaf, no runtime
|
|
12
|
-
// imports) keeps the published artifact free of any `@jsr` dep. Dropping this line
|
|
13
|
-
// reintroduces an uninstallable release — verified by packing and installing the tarball.
|
|
14
|
-
noExternal: ['@std/jsonc'],
|
|
15
|
-
clean: false,
|
|
16
|
-
})
|
package/vitest.config.ts
DELETED