Skip to content

Commit 87494c5

Browse files
Update knip configuration to improve dependency handling
- Added 'nps' to ignoreBinaries to prevent Knip from detecting it in devDependencies. - Included '@babel/runtime' in ignoreDependencies to clarify its intended placement in dependencies. These changes enhance the accuracy of the Knip analysis by ensuring proper exclusion of specific packages.
1 parent db3e673 commit 87494c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

knip.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const config: KnipConfig = {
3939
'react_on_rails_pro/**',
4040
],
4141
ignoreBinaries: [
42+
// Knip fails to detect it's declared in devDependencies
43+
'nps',
4244
// local scripts
4345
'node_package/scripts/.*',
4446
],
@@ -90,6 +92,8 @@ const config: KnipConfig = {
9092
'bin/.*',
9193
],
9294
ignoreDependencies: [
95+
// Knip thinks it can be a devDependency, but it's supposed to be in dependencies.
96+
'@babel/runtime',
9397
// There's no ReScript plugin for Knip
9498
'@rescript/react',
9599
// The Babel plugin fails to detect it

0 commit comments

Comments
 (0)