We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a918960 commit b5b30c0Copy full SHA for b5b30c0
knip.ts
@@ -45,6 +45,9 @@ const config: KnipConfig = {
45
'@eslint/js',
46
// used by Jest
47
'jsdom',
48
+ // This is an optional peer dependency because users without RSC don't need it
49
+ // but Knip doesn't like such dependencies to be referenced directly in code
50
+ 'react-on-rails-rsc',
51
],
52
},
53
'spec/dummy': {
package.json
@@ -79,6 +79,11 @@
79
"react-dom": ">= 16",
80
"react-on-rails-rsc": "19.0.2"
81
82
+ "peerDependenciesMeta": {
83
+ "react-on-rails-rsc": {
84
+ "optional": true
85
+ }
86
+ },
87
"files": [
88
"node_package/lib"
89
0 commit comments