diff --git a/knip.config.ts b/knip.config.ts index 5007d3b00..5c2e76f0e 100644 --- a/knip.config.ts +++ b/knip.config.ts @@ -1,26 +1,18 @@ -import type { KnipConfig } from 'knip' - -const config = async (): Promise => { - return { - entry: [ - 'src/commands/sgd/source/delta.ts', - 'src/main.ts', - 'bin/dev.js', - 'bin/run.js', - ], - project: ['src/**/*.ts', 'bin/*.js'], - ignoreDependencies: [ - '@salesforce/ts-sinon', - '@types/chai', - '@types/jest', - '@types/mocha', - 'chai', - 'mocha', - 'sinon', - 'ts-jest-mock-import-meta', - ], - ignoreBinaries: ['test:e2e'], - } +export default { + entry: [ + 'src/commands/sgd/source/delta.ts', + 'src/main.ts', + 'bin/dev.js', + 'bin/run.js', + '**/*.{nut,test}.ts', + ], + project: ['**/*.{ts,js,json}'], + ignoreDependencies: [ + '@salesforce/ts-sinon', + '@types/mocha', + 'mocha', + 'sinon', + 'ts-jest-mock-import-meta', + ], + ignoreBinaries: ['test:e2e'], } - -export default config