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 98fcbc9 commit 90eaba4Copy full SHA for 90eaba4
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
@@ -78,6 +78,11 @@
78
"react-dom": ">= 16",
79
"react-on-rails-rsc": "19.0.2"
80
81
+ "peerDependenciesMeta": {
82
+ "react-on-rails-rsc": {
83
+ "optional": true
84
+ }
85
+ },
86
"files": [
87
"node_package/lib"
88
0 commit comments