File tree Expand file tree Collapse file tree
packages/plugin-knip/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ import type {
1414 Issue as CpIssue ,
1515} from '@code-pushup/models' ;
1616import { formatGitPath , getGitRoot , slugify } from '@code-pushup/utils' ;
17- import { ISSUE_RECORDS_TYPES , ISSUE_SET_TYPES , ISSUE_TYPES } from '../constants.js' ;
1817import {
19- ISSUE_TYPE_MESSAGE ,
20- ISSUE_TYPE_TO_AUDIT_SLUG ,
21- } from './constants.js' ;
18+ ISSUE_RECORDS_TYPES ,
19+ ISSUE_SET_TYPES ,
20+ ISSUE_TYPES ,
21+ } from '../constants.js' ;
22+ import { ISSUE_TYPE_MESSAGE , ISSUE_TYPE_TO_AUDIT_SLUG } from './constants.js' ;
2223
2324const severityMap : Record < KnipSeverity | 'unknown' , CondPushupIssueSeverity > = {
2425 unknown : 'info' ,
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ export function createRunnerConfig(options: RunnerOptions = {}): RunnerConfig {
5050 outputFile = path . join ( KNIP_PLUGIN_SLUG , KNIP_REPORT_NAME ) ,
5151 rawOutputFile,
5252 } = options ;
53-
53+
5454 // Resolve the reporter path from the installed package
5555 const reporterPath = '@code-pushup/knip-plugin/src/lib/reporter/index.js' ;
56-
56+
5757 return {
5858 command : 'npx' ,
5959 args : [
Original file line number Diff line number Diff line change 1616 "skipDefaultLibCheck" : true ,
1717 "baseUrl" : " ." ,
1818 "paths" : {
19+ "@code-pushup/knip-plugin" : [" packages/plugin-knip/src/index.ts" ],
1920 "@code-pushup/test-nx-utils" : [" testing/test-nx-utils/src/index.ts" ],
2021 "@code-pushup/test-setup" : [" testing/test-setup/src/index.ts" ],
2122 "@code-pushup/test-setup-config" : [
2223 " testing/test-setup-config/src/index.ts"
2324 ],
24- "@code-pushup/test-utils" : [" testing/test-utils/src/index.ts" ],
25- "@code-pushup/knip-plugin" : [" packages/plugin-knip/src/index.ts" ]
25+ "@code-pushup/test-utils" : [" testing/test-utils/src/index.ts" ]
2626 }
2727 },
2828 "exclude" : [" node_modules" , " tmp" ]
You can’t perform that action at this time.
0 commit comments