@code-pushup/typescript-plugin 0.66.0 → 0.66.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/README.md +1 -1
- package/package.json +3 -3
- package/src/index.d.ts +3 -2
- package/src/index.js +3 -2
- package/src/index.js.map +1 -1
- package/src/lib/runner/runner.js +4 -2
- package/src/lib/runner/runner.js.map +1 -1
- package/src/lib/typescript-plugin.js +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/typescript-plugin",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.2",
|
|
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.66.
|
|
27
|
-
"@code-pushup/utils": "0.66.
|
|
26
|
+
"@code-pushup/models": "0.66.2",
|
|
27
|
+
"@code-pushup/utils": "0.66.2",
|
|
28
28
|
"zod": "^3.23.8"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { typescriptPlugin } from './lib/typescript-plugin.js';
|
|
2
|
+
export default typescriptPlugin;
|
|
1
3
|
export { TYPESCRIPT_PLUGIN_SLUG } from './lib/constants.js';
|
|
2
|
-
export {
|
|
4
|
+
export { typescriptPluginConfigSchema, type TypescriptPluginConfig, type TypescriptPluginOptions, } from './lib/schema.js';
|
|
3
5
|
export { getCategories, getCategoryRefsFromGroups } from './lib/utils.js';
|
|
4
|
-
export { type TypescriptPluginConfig, type TypescriptPluginOptions, typescriptPluginConfigSchema, } from './lib/schema.js';
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { typescriptPlugin } from './lib/typescript-plugin.js';
|
|
2
|
+
export default typescriptPlugin;
|
|
1
3
|
export { TYPESCRIPT_PLUGIN_SLUG } from './lib/constants.js';
|
|
2
|
-
export { typescriptPlugin } from './lib/typescript-plugin.js';
|
|
3
|
-
export { getCategories, getCategoryRefsFromGroups } from './lib/utils.js';
|
|
4
4
|
export { typescriptPluginConfigSchema, } from './lib/schema.js';
|
|
5
|
+
export { getCategories, getCategoryRefsFromGroups } from './lib/utils.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugin-typescript/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/plugin-typescript/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,eAAe,gBAAgB,CAAC;AAEhC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EACL,4BAA4B,GAG7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC"}
|
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,
|