Skip to content

Commit

Permalink
Chore: Move dependencies to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Mar 7, 2024
1 parent 8764419 commit 85e1d42
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ esbuild.build({
outdir: "dist",
format: "esm",
splitting: true,
external: ["react", "react-dom"],
external: ["react", "react-dom", "@dfinity/agent", "@dfinity/candid"],
plugins: [],
});
47 changes: 33 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@
"dev:tsc": "tsc --watch --preserveWatchOutput",
"dev:esbuild": "npm run build --watch"
},
"dependencies": {
"@dfinity/agent": "^1.0.1",
"@dfinity/candid": "^1.0.1"
},
"peerDependencies": {
"react": ">=18.0.0"
"react": ">=18.0.0",
"@dfinity/agent": ">=1.0.1",
"@dfinity/candid": ">=1.0.1"
},
"devDependencies": {
"@types/node": "^20.10.6",
Expand Down

0 comments on commit 85e1d42

Please sign in to comment.