@code-pushup/typescript-plugin 0.66.1 → 0.67.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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/typescript-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.67.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,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@code-pushup/models": "0.
|
|
27
|
-
"@code-pushup/utils": "0.
|
|
26
|
+
"@code-pushup/models": "0.67.0",
|
|
27
|
+
"@code-pushup/utils": "0.67.0",
|
|
28
28
|
"zod": "^3.23.8"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
package/src/lib/runner/runner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pluralizeToken } from '@code-pushup/utils';
|
|
2
2
|
import { getTypeScriptDiagnostics, } from './ts-runner.js';
|
|
3
3
|
import { getIssueFromDiagnostic, tsCodeToAuditSlug } from './utils.js';
|
|
4
4
|
export function createRunnerFunction(options) {
|
|
@@ -25,7 +25,9 @@ export function createRunnerFunction(options) {
|
|
|
25
25
|
slug,
|
|
26
26
|
score: issues.length === 0 ? 1 : 0,
|
|
27
27
|
value: issues.length,
|
|
28
|
-
displayValue:
|
|
28
|
+
displayValue: issues.length === 0
|
|
29
|
+
? 'passed'
|
|
30
|
+
: pluralizeToken('error', issues.length),
|
|
29
31
|
...(issues.length > 0 ? { details } : {}),
|
|
30
32
|
};
|
|
31
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../../../../packages/plugin-typescript/src/lib/runner/runner.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../../../../packages/plugin-typescript/src/lib/runner/runner.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAEL,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMvE,MAAM,UAAU,oBAAoB,CAAC,OAAsB;IACzD,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAC7C,OAAO,KAAK,IAA2B,EAAE;QACvC,MAAM,WAAW,GAAG,MAAM,wBAAwB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAE/B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACd,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1C,MAAM,cAAc,GAAY,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC;YACjE,OAAO;gBACL,GAAG,GAAG;gBACN,CAAC,IAAI,CAAC,EAAE;oBACN,IAAI;oBACJ,OAAO,EAAE;wBACP,MAAM,EAAE,CAAC,GAAG,cAAc,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAC;qBAC1D;iBACF;aACF,CAAC;QACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAe,EAAE;YAClD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YAEvC,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC;YACrC,OAAO;gBACL,IAAI;gBACJ,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClC,KAAK,EAAE,MAAM,CAAC,MAAM;gBACpB,YAAY,EACV,MAAM,CAAC,MAAM,KAAK,CAAC;oBACjB,CAAC,CAAC,QAAQ;oBACV,CAAC,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;gBAC5C,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC1C,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -14,8 +14,8 @@ export async function typescriptPlugin(options) {
|
|
|
14
14
|
slug: TYPESCRIPT_PLUGIN_SLUG,
|
|
15
15
|
packageName: packageJson.name,
|
|
16
16
|
version: packageJson.version,
|
|
17
|
-
title: '
|
|
18
|
-
description: 'Official Code PushUp
|
|
17
|
+
title: 'TypeScript',
|
|
18
|
+
description: 'Official Code PushUp TypeScript plugin.',
|
|
19
19
|
docsUrl: 'https://www.npmjs.com/package/@code-pushup/typescript-plugin/',
|
|
20
20
|
icon: 'typescript',
|
|
21
21
|
audits: filteredAudits,
|