Skip to content

Commit

Permalink
refactor: peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Dec 18, 2023
1 parent c65b366 commit d0c8a59
Show file tree
Hide file tree
Showing 13 changed files with 67 additions and 34 deletions.
16 changes: 16 additions & 0 deletions .changeset/weak-swans-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'hostd': minor
'renterd': minor
'@siafoundation/data-sources': minor
'@siafoundation/design-system': minor
'@siafoundation/fonts': minor
'@siafoundation/react-core': minor
'@siafoundation/react-hostd': minor
'@siafoundation/react-renterd': minor
'@siafoundation/react-sia-central': minor
'@siafoundation/react-walletd': minor
'@siafoundation/sia-central': minor
'@siafoundation/units': minor
---

Refactored internal dependencies.
6 changes: 4 additions & 2 deletions libs/data-sources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"version": "0.1.0",
"private": true,
"license": "MIT",
"dependencies": {
"peerDependencies": {
"axios": "^0.27.2",
"lodash": "^4.17.21"
},
"dependencies": {
"feed": "^4.2.2",
"rss-parser": "^3.13.0",
"lodash": "^4.17.21",
"@notionhq/client": "^2.2.8",
"gray-matter": "^4.0.3",
"next-mdx-remote": "^4.0.3",
Expand Down
8 changes: 8 additions & 0 deletions libs/design-system/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
"extends": ["plugin:@nx/react", "../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": ["libs/design-system/tailwind.config.js"]
}
]
},
"overrides": [
{
"files": ["*.json"],
Expand Down
32 changes: 18 additions & 14 deletions libs/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,32 @@
"description": "React-based design system used across Sia apps and websites",
"version": "0.63.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@siafoundation/react-icons": "^0.1.0",
"@siafoundation/react-core": "^0.15.0",
"@siafoundation/units": "^0.2.0",
"@siafoundation/types": "^0.0.1",
"@visx/group": "2.17.0",
"@visx/react-spring": "2.18.0",
"@visx/glyph": "2.17.0",
"@siafoundation/react-sia-central": "^0.0.3",
"react": "^18.2.0",
"next": "^13.5.2",
"swr": "^2.1.1",
"class-variance-authority": "^0.7.0",
"lodash": "^4.17.21",
"react": "18.2.0",
"swr": "^2.1.1",
"bignumber.js": "^9.0.2",
"next": "13.5.2",
"react-idle-timer": "^5.7.2",
"axios": "^0.27.2",
"react-hook-form": "^7.43.9",
"use-local-storage-state": "^18.3.3",
"tailwindcss": "^3.2.7",
"tailwind-scrollbar": "^2.0.1",
"tailwindcss-text-fill": "^0.2.0",
"tailwindcss-shadow-fill": "^1.0.1",
"@tailwindcss/container-queries": "^0.1.1"
},
"dependencies": {
"@visx/group": "2.17.0",
"@visx/react-spring": "2.18.0",
"@visx/glyph": "2.17.0",
"react-idle-timer": "^5.7.2",
"formik": "^2.2.9",
"yup": "^0.32.11",
"react-qr-code": "^2.0.7",
Expand All @@ -43,11 +50,6 @@
"@visx/xychart": "^2.18.0",
"react-dropzone": "^14.2.3",
"@radix-ui/react-radio-group": "^1.0.0",
"tailwindcss": "3.2.7",
"tailwind-scrollbar": "^2.0.1",
"tailwindcss-text-fill": "^0.2.0",
"tailwindcss-shadow-fill": "^1.0.1",
"@tailwindcss/container-queries": "^0.1.1",
"@radix-ui/react-accordion": "^1.0.0",
"@radix-ui/react-avatar": "^1.0.0",
"react-currency-input-field": "^3.6.5",
Expand All @@ -66,7 +68,9 @@
"@radix-ui/react-tabs": "^1.0.0",
"@radix-ui/react-tooltip": "^1.0.0",
"clipboard-polyfill": "^3.0.3",
"react-hot-toast": "^2.2.0",
"react-hot-toast": "^2.2.0"
},
"devDependencies": {
"@nx/react": "16.8.1"
},
"types": "./src/index.d.ts"
Expand Down
3 changes: 1 addition & 2 deletions libs/design-system/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
},
"files": [
"../../node_modules/@nx/react/typings/cssmodule.d.ts",
"../../node_modules/@nx/react/typings/image.d.ts",
"../../node_modules/@types/carbon__icons-react/index.d.ts"
"../../node_modules/@nx/react/typings/image.d.ts"
],
"exclude": [
"**/*.spec.ts",
Expand Down
4 changes: 2 additions & 2 deletions libs/fonts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "Next font configuration for use across apps.",
"version": "0.0.1",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"class-variance-authority": "^0.7.0",
"next": "13.5.2"
"next": "^13.5.2"
},
"types": "./src/index.d.ts"
}
10 changes: 6 additions & 4 deletions libs/react-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"description": "Core library for building React hooks for interacting with a Sia daemon.",
"version": "0.15.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"react": "^18.2.0",
"next": "^13.5.2",
"swr": "^2.1.1",
"react": "18.2.0",
"axios": "^0.27.2",
"next": "13.5.2",
"use-local-storage-state": "^18.3.3",
"use-local-storage-state": "^18.3.3"
},
"dependencies": {
"detect-gpu": "^5.0.34"
},
"types": "./src/index.d.ts"
Expand Down
6 changes: 3 additions & 3 deletions libs/react-hostd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"description": " React hooks for interacting with `hostd`.",
"version": "0.10.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"swr": "^2.1.1",
"@siafoundation/react-core": "^0.15.0",
"@siafoundation/types": "^0.0.1",
"swr": "^2.1.1"
"@siafoundation/types": "^0.0.1"
},
"types": "./src/index.d.ts"
}
2 changes: 1 addition & 1 deletion libs/react-renterd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": " React hooks for interacting with `renterd`.",
"version": "0.12.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@siafoundation/react-core": "^0.15.0",
"@siafoundation/types": "^0.0.1",
"swr": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion libs/react-sia-central/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "React hooks for interacting with the Sia Central API.",
"version": "0.0.3",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@siafoundation/react-core": "^0.15.0",
"@siafoundation/sia-central": "^0.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion libs/react-walletd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": " React hooks for interacting with `walletd`.",
"version": "0.3.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@siafoundation/react-core": "^0.15.0",
"@siafoundation/types": "^0.0.1",
"swr": "^2.1.1"
Expand Down
2 changes: 1 addition & 1 deletion libs/sia-central/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Methods and types for interacting with the Sia Central API.",
"version": "0.1.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"lodash": "^4.17.21"
},
"types": "./src/index.d.ts"
Expand Down
8 changes: 5 additions & 3 deletions libs/units/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"description": "Methods and types for interacting with the Sia Central API.",
"version": "0.2.0",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"@siafoundation/sia-central": "^0.1.0",
"bignumber.js": "^9.0.2",
"@siafoundation/react-core": "^0.15.0",
"blakejs": "^1.2.1",
"bignumber.js": "^9.0.2",
"lodash": "^4.17.21"
},
"dependencies": {
"blakejs": "^1.2.1"
},
"types": "./src/index.d.ts"
}

0 comments on commit d0c8a59

Please sign in to comment.