From 3ad4ef080cbfffe5ba40de236d20c8abcabbbf26 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Fri, 27 Dec 2024 13:37:44 +0100 Subject: [PATCH] Fixing dependencies --- .github/workflows/format.yml | 8 ++------ .github/workflows/tests.yml | 4 ++-- package.json | 12 +++++++----- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index fbca67f..5a8d642 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -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 @@ -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: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 44b1858..ede035f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | - npm install --force + npm install - name: Run tests run: | diff --git a/package.json b/package.json index 42e3c9f..9fabcf5 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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", @@ -58,6 +57,9 @@ "vite-plugin-dts": "^4.3.0", "vitest": "^2.1.8" }, + "engines": { + "node": ">=18" + }, "sideEffect": [ "**/*.css" ]