@cplieger/deadset-ts 5.2.2 → 5.2.3
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/jsr.json +1 -1
- package/package.json +2 -2
- package/src/workspace-run.ts +3 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
deadset-ts finds dead code in TypeScript projects, down to class members, type members and dead stores inside functions, and writes a report your CI can fail on.
|
|
6
6
|
|
|
7
|
-
It reads your `tsconfig.json` projects, `allowJs` JavaScript and Vue, Svelte and Astro scripts included, with the type information of TypeScript 7.1.0-dev.
|
|
7
|
+
It reads your `tsconfig.json` projects, `allowJs` JavaScript and Vue, Svelte and Astro scripts included, with the type information of TypeScript 7.1.0-dev.20261006.1, its one dependency. Your project keeps its own TypeScript version. A type error under that version skips the function or statement that holds it. deadset-ts reports and never edits your code. It is pre-release, tested only on Linux, needs Node.js 24 or later and is licensed under GPL-3.0-or-later.
|
|
8
8
|
|
|
9
9
|
## Why use it
|
|
10
10
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cplieger/deadset-ts",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Deterministic dead-code analysis for TypeScript, class and type members included",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lint:fix": "eslint . --fix && prettier --write ."
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript/native": "npm:typescript@7.1.0-dev.
|
|
32
|
+
"@typescript/native": "npm:typescript@7.1.0-dev.20261006.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "10.0.1",
|
package/src/workspace-run.ts
CHANGED
|
@@ -41,10 +41,9 @@ export interface WorkspaceRun {
|
|
|
41
41
|
referenceOnly(configFile: string, compiled?: readonly string[]): (file: string) => boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Whether one file a target configuration's program holds is the target's own. A
|
|
44
|
-
* workspace package's file is by its path alone
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* reached it as a library's.
|
|
44
|
+
* workspace package's file is by its path alone: the run reads another package from
|
|
45
|
+
* its source, so the compiler holds that package's files as the importer's own, not
|
|
46
|
+
* as a library's. Any other file is unless the compiler reached it as a library's.
|
|
48
47
|
*/
|
|
49
48
|
ownFile(file: string, fromExternalLibrary: boolean): boolean;
|
|
50
49
|
/** The target's own manifest, its targets read back to source. */
|