Skip to content

Commit 9670d92

Browse files
committed
refactor: change knip config to js
1 parent 04112e2 commit 9670d92

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default config(
2323
'apps/playground/src/instruments/examples/interactive/Interactive-With-Legacy-Script/legacy.js',
2424
'runtime/v1/src/**/*.d.ts',
2525
'vendor/**/*',
26+
'knip.ts',
2627
'vitest.config.ts',
2728
'vitest.workspace.ts'
2829
]

knip.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

knip.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import type { KnipConfig } from 'knip';
2+
3+
const config: KnipConfig = {
4+
workspaces: {
5+
'apps/api': {
6+
entry: ['src/main.ts', 'libnest.config.ts'],
7+
ignoreDependencies: ['@opendatacapture/runtime-v1', 'prisma-json-types-generator', 'lodash-es'],
8+
project: '**/*.ts'
9+
}
10+
}
11+
};
12+
13+
export default config;

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"moduleResolution": "Bundler",
1111
"resolveJsonModule": true
1212
},
13-
"include": ["vitest.config.ts", "vitest.workspace.ts"],
13+
"include": ["knip.ts", "vitest.config.ts", "vitest.workspace.ts"],
1414
"exclude": ["docs/*", "**/dist", "**/node_modules", "vendor/**/*"]
1515
}

0 commit comments

Comments
 (0)