Commit f43efce
Fix Knip configuration after monorepo restructure
After the monorepo restructure that moved packages to packages/react-on-rails
and packages/react-on-rails-pro, Knip was detecting false positives for unused
files and dependencies.
Changes:
- Add jest.config.base.js as entry point (used by both packages)
- Remove 'nps' from ignoreBinaries (no longer in package.json scripts)
- Add test dependencies to root ignoreDependencies (shared by child workspaces)
- Add mock-fs dependencies to Pro package ignoreDependencies
- Remove dependencies that are now properly detected (@babel/runtime,
mini-css-extract-plugin, css-loader, sass, sass-loader)
This fixes the failing "Detect dead code" CI job on master.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 276507d commit f43efce
1 file changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
| |||
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
92 | 106 | | |
93 | 107 | | |
94 | 108 | | |
| |||
124 | 138 | | |
125 | 139 | | |
126 | 140 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
| |||
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
139 | | - | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | | - | |
145 | | - | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
0 commit comments