Skip to content

Commit b5b30c0

Browse files
authored
Mark react-on-rails-rsc peerdep as optional (#1740)
1 parent a918960 commit b5b30c0

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
@@ -79,6 +79,11 @@
7979
"react-dom": ">= 16",
8080
"react-on-rails-rsc": "19.0.2"
8181
},
82+
"peerDependenciesMeta": {
83+
"react-on-rails-rsc": {
84+
"optional": true
85+
}
86+
},
8287
"files": [
8388
"node_package/lib"
8489
],

0 commit comments

Comments
 (0)