Skip to content

Commit 90eaba4

Browse files
alexeyr-ci2alexeyr
authored andcommitted
Mark react-on-rails-rsc peerdep as optional
1 parent 98fcbc9 commit 90eaba4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

knip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ const config: KnipConfig = {
4545
'@eslint/js',
4646
// used by Jest
4747
'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',
4851
],
4952
},
5053
'spec/dummy': {

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
"react-dom": ">= 16",
7979
"react-on-rails-rsc": "19.0.2"
8080
},
81+
"peerDependenciesMeta": {
82+
"react-on-rails-rsc": {
83+
"optional": true
84+
}
85+
},
8186
"files": [
8287
"node_package/lib"
8388
],

0 commit comments

Comments
 (0)