Skip to content

Commit

Permalink
feat: use correct way to define optional dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
perzeuss committed Aug 30, 2023
1 parent 447009a commit 40a94c5
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,28 @@
"dependencies": {
"isomorphic-fetch": "^3.0.0"
},
"optionalDependencies": {
"peerDependencies": {
"@visheratin/web-ai": "^1.0.0",
"@visheratin/web-ai-node": "^1.0.0",
"@xenova/transformers": "^2.0.0",
"cohere-ai": "^6.0.0",
"openai": "^3.0.0"
"openai": "^3.0.0 | ^4.0.0"
},
"peerDependenciesMeta": {
"@visheratin/web-ai": {
"optional": true
},
"@visheratin/web-ai-node": {
"optional": true
},
"@xenova/transformers": {
"optional": true
},
"cohere-ai": {
"optional": true
},
"openai": {
"optional": true
}
}
}

0 comments on commit 40a94c5

Please sign in to comment.