@code-pushup/typescript-plugin 0.69.5 → 0.70.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/package.json +4 -4
- package/src/lib/runner/utils.d.ts +1 -1
- package/src/lib/schema.d.ts +10 -8
- package/src/lib/schema.js +5 -7
- package/src/lib/schema.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/typescript-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.70.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Code PushUp plugin for incrementally adopting strict compilation flags in TypeScript projects",
|
|
6
6
|
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/plugin-typescript#readme",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@code-pushup/models": "0.
|
|
27
|
-
"@code-pushup/utils": "0.
|
|
28
|
-
"zod": "^
|
|
26
|
+
"@code-pushup/models": "0.70.0",
|
|
27
|
+
"@code-pushup/utils": "0.70.0",
|
|
28
|
+
"zod": "^4.0.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"typescript": ">=4.0.0"
|
|
@@ -32,7 +32,7 @@ export declare function getMessage(diag: Diagnostic): string;
|
|
|
32
32
|
*/
|
|
33
33
|
export declare function getIssueFromDiagnostic(diag: Diagnostic): {
|
|
34
34
|
message: string;
|
|
35
|
-
severity: "
|
|
35
|
+
severity: "error" | "info" | "warning";
|
|
36
36
|
source?: {
|
|
37
37
|
file: string;
|
|
38
38
|
position?: {
|
package/src/lib/schema.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const typescriptPluginConfigSchema: z.ZodObject<{
|
|
3
3
|
tsconfig: z.ZodDefault<z.ZodString>;
|
|
4
|
-
onlyAudits: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
onlyAudits: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
5
|
+
"syntax-errors": "syntax-errors";
|
|
6
|
+
"semantic-errors": "semantic-errors";
|
|
7
|
+
"declaration-and-language-service-errors": "declaration-and-language-service-errors";
|
|
8
|
+
"internal-errors": "internal-errors";
|
|
9
|
+
"configuration-errors": "configuration-errors";
|
|
10
|
+
"no-implicit-any-errors": "no-implicit-any-errors";
|
|
11
|
+
"unknown-codes": "unknown-codes";
|
|
12
|
+
}>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
12
14
|
export type TypescriptPluginOptions = z.input<typeof typescriptPluginConfigSchema>;
|
|
13
15
|
export type TypescriptPluginConfig = z.infer<typeof typescriptPluginConfigSchema>;
|
package/src/lib/schema.js
CHANGED
|
@@ -3,14 +3,12 @@ import { AUDITS, DEFAULT_TS_CONFIG } from './constants.js';
|
|
|
3
3
|
const auditSlugs = AUDITS.map(({ slug }) => slug);
|
|
4
4
|
export const typescriptPluginConfigSchema = z.object({
|
|
5
5
|
tsconfig: z
|
|
6
|
-
.string(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.default(DEFAULT_TS_CONFIG),
|
|
6
|
+
.string()
|
|
7
|
+
.default(DEFAULT_TS_CONFIG)
|
|
8
|
+
.describe(`Path to a tsconfig file (default is ${DEFAULT_TS_CONFIG})`),
|
|
10
9
|
onlyAudits: z
|
|
11
|
-
.array(z.enum(auditSlugs)
|
|
12
|
-
|
|
13
|
-
})
|
|
10
|
+
.array(z.enum(auditSlugs))
|
|
11
|
+
.describe('Filters TypeScript compiler errors by diagnostic codes')
|
|
14
12
|
.optional(),
|
|
15
13
|
});
|
|
16
14
|
//# sourceMappingURL=schema.js.map
|
package/src/lib/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../packages/plugin-typescript/src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAG/C,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC;SACR,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../packages/plugin-typescript/src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG3D,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAG/C,CAAC;AACF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,OAAO,CAAC,iBAAiB,CAAC;SAC1B,QAAQ,CAAC,uCAAuC,iBAAiB,GAAG,CAAC;IACxE,UAAU,EAAE,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SACzB,QAAQ,CAAC,wDAAwD,CAAC;SAClE,QAAQ,EAAE;CACd,CAAC,CAAC"}
|