Skip to content

Commit 675b3ab

Browse files
committed
fix(plugin-typescript): use default export
1 parent 8361ebc commit 675b3ab

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

e2e/plugin-typescript-e2e/mocks/fixtures/default-setup/code-pushup.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import type { CoreConfig } from '@code-pushup/models';
2-
import {
2+
import typescriptPlugin, {
33
getCategoryRefsFromGroups,
4-
typescriptPlugin,
54
} from '@code-pushup/typescript-plugin';
65

76
export default {
87
plugins: [await typescriptPlugin()],
98
categories: [
109
{
11-
slug: 'typescript-quality',
12-
title: 'Typescript',
10+
slug: 'type-safety',
11+
title: 'Type safety',
1312
refs: getCategoryRefsFromGroups(),
1413
},
1514
],

e2e/plugin-typescript-e2e/tests/__snapshots__/collect.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ exports[`PLUGIN collect report with typescript-plugin NPM package > should run p
2424
"weight": 1,
2525
},
2626
],
27-
"slug": "typescript-quality",
28-
"title": "Typescript",
27+
"slug": "type-safety",
28+
"title": "Type safety",
2929
},
3030
],
3131
"packageName": "@code-pushup/core",
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { typescriptPlugin } from './lib/typescript-plugin.js';
2+
3+
export default typescriptPlugin;
4+
15
export { TYPESCRIPT_PLUGIN_SLUG } from './lib/constants.js';
2-
export { typescriptPlugin } from './lib/typescript-plugin.js';
3-
export { getCategories, getCategoryRefsFromGroups } from './lib/utils.js';
46
export {
7+
typescriptPluginConfigSchema,
58
type TypescriptPluginConfig,
69
type TypescriptPluginOptions,
7-
typescriptPluginConfigSchema,
810
} from './lib/schema.js';
11+
export { getCategories, getCategoryRefsFromGroups } from './lib/utils.js';

0 commit comments

Comments
 (0)