Skip to content

Commit 385df7f

Browse files
Fix Knip configuration to ignore build output directories
- Added ignore patterns for packages/react-on-rails/lib/** and node_package/lib/** - Added /packages/*/lib to .gitignore to exclude workspace build outputs - Resolves Knip dead code detection failures for build artifacts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6f08b49 commit 385df7f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tmp/
2121
node_modules
2222

2323
/node_package/lib
24+
/packages/*/lib
2425

2526
yarn-debug.*
2627
yarn-error.*

knip.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ const config: KnipConfig = {
2323
'packages/react-on-rails/src/**/*.[jt]s{x,}!',
2424
'node_package/tests/**/*.[jt]s{x,}',
2525
'!react_on_rails_pro/**',
26+
'!packages/react-on-rails/lib/**',
2627
],
2728
babel: {
2829
config: ['node_package/babel.config.js'],
2930
},
3031
ignore: [
3132
'node_package/tests/emptyForTesting.js',
33+
// Build output directories that should be ignored
34+
'packages/react-on-rails/lib/**',
35+
'node_package/lib/**',
3236
// Pro features exported for external consumption
3337
'packages/react-on-rails/src/pro/streamServerRenderedReactComponent.ts:transformRenderStreamChunksToResultObject',
3438
'packages/react-on-rails/src/pro/streamServerRenderedReactComponent.ts:streamServerRenderedComponent',

0 commit comments

Comments
 (0)