@@ -52,7 +52,7 @@ const config: KnipConfig = {
5252
5353 // Special cases for packages with different entry points
5454 "packages/cli-repl" : {
55- project : [ "src/**/*.ts" , "bin/**/*.js" , "test/**/*.ts" ] ,
55+ project : [ "src/**/*.ts! " , "bin/**/*.js" , "test/**/*.ts" ] ,
5656 ignoreDependencies : [
5757 // Eagerly loaded startup snapshot dependencies
5858 "@mongodb-js/saslprep" ,
@@ -67,17 +67,17 @@ const config: KnipConfig = {
6767 } ,
6868
6969 "packages/shell-api" : {
70- entry : [ "src/api.ts" ] ,
70+ entry : [ "src/api.ts!" , "scripts/*.ts" , "test/*.ts "] ,
7171 } ,
7272
7373 "packages/mongosh" : {
7474 project : [ "bin/**/*.js" ] ,
7575 } ,
7676
7777 "packages/e2e-tests" : {
78- entry : [ "test/**/*" , "test/fixtures/**/*" ] ,
78+ entry : [ "test/**/*.ts " , "test/fixtures/**/*" ] ,
7979 ignoreDependencies : [
80- // Used indirectly
80+ // This is used for version check. TODO: Consider changing that test.
8181 "@mongosh/cli-repl" ,
8282 ] ,
8383 } ,
@@ -109,9 +109,13 @@ const config: KnipConfig = {
109109 ] ,
110110 } ,
111111
112+ "packages/errors" : {
113+ entry : [ "src/index.ts!" , "scripts/*.ts" ] ,
114+ } ,
115+
112116 "packages/browser-repl" : {
113- entry : [ "config/*.js" ] ,
114- project : [ "src/**/*.{ts,tsx}" ] ,
117+ entry : [ "src/index.tsx!" , " config/*.js"] ,
118+ project : [ "src/**/*.{ts,tsx}! " ] ,
115119 ignoreDependencies : [
116120 "@wojtekmaj/enzyme-adapter-react-17" ,
117121 "enzyme" ,
@@ -149,7 +153,13 @@ const config: KnipConfig = {
149153 } ,
150154
151155 "packages/async-rewriter2" : {
152- entry : [ "test/fixtures/**/*" ] ,
156+ entry : [
157+ "src/index.ts!" ,
158+ "bin/*.js!" ,
159+ "test/fixtures/**/*" ,
160+ "scripts/*.js" ,
161+ "benchmark/index.ts" ,
162+ ] ,
153163 ignoreFiles : [
154164 // Used by make-runtime-support.js
155165 "src/runtime-support.nocov.js" ,
@@ -185,7 +195,11 @@ const config: KnipConfig = {
185195
186196 // Webpack configuration
187197 webpack : {
188- config : [ "config/webpack.base.config.js" , "**/webpack.config.js" ] ,
198+ config : [
199+ "config/webpack.base.config.js" ,
200+ "**/webpack.config.js" ,
201+ "**/webpack.config.*.js" ,
202+ ] ,
189203 } ,
190204
191205 // ESLint configuration
0 commit comments