Skip to content

Commit

Permalink
Fixing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyOz committed Dec 27, 2024
1 parent 99c14f8 commit 3ad4ef0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 19, 20, 21, 22, 23]
node-version: [18, 20, 22, 23]

steps:
- name: Checkout code
Expand All @@ -24,13 +24,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install Peer Dependencies
run: |
npm install react@18 react-markdown@9 react-syntax-highlighter@15 styled-components@6
- name: Install dependencies
run: |
npm install --force
npm install
- name: Coding Style Checks
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 19, 20, 21, 22, 23]
node-version: [18, 20, 22, 23]

steps:
- name: Checkout code
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Install dependencies
run: |
npm install --force
npm install
- name: Run tests
run: |
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
"tests:coverage": "vitest run --coverage"
},
"peerDependencies": {
"react": ">=18",
"react-markdown": ">=9",
"react-syntax-highlighter": ">=15"
},
"dependencies": {
"react": "^18.3.1",
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.6.1",
"styled-components": "^6.1.13"
},
"devDependencies": {
Expand All @@ -49,6 +47,7 @@
"jsdom": "^25.0.1",
"prettier": "3.4.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.6.1",
"styled-components": "^6.1.13",
Expand All @@ -58,6 +57,9 @@
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.8"
},
"engines": {
"node": ">=18"
},
"sideEffect": [
"**/*.css"
]
Expand Down

0 comments on commit 3ad4ef0

Please sign in to comment.