From dbc57766d4b24c21f62a3e9ee552a559fa73f6b6 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 29 Oct 2023 04:24:04 +0900 Subject: [PATCH] feat: use `overrides` instead of `--legacy-peer-deps` --- .github/workflows/lint.yml | 2 +- .github/workflows/release-please.yml | 4 ++-- .github/workflows/test.yml | 2 +- package-lock.json | 9 ++++++--- package.json | 3 +++ 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a1ffefde..5c568b447 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,5 +14,5 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 16 - - run: npm ci --legacy-peer-deps + - run: npm ci - run: npm run lint \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 01b447d0a..536369b21 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -24,7 +24,7 @@ jobs: node-version: "16.x" - name: Build for Deno run: | - npm ci --legacy-peer-deps + npm ci npm run build:deno if: ${{ steps.release.outputs.release_created }} - name: Move Deno files @@ -55,7 +55,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} - name: Publish package to npmjs run: | - npm ci --legacy-peer-deps + npm ci npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6c730ab9..a15db51e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,5 +14,5 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 16 - - run: npm ci --legacy-peer-deps + - run: npm ci - run: npm run test \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 534e2c5f4..30495b7e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6715,7 +6715,8 @@ }, "acorn-jsx": { "version": "5.3.2", - "dev": true + "dev": true, + "requires": {} }, "aggregate-error": { "version": "4.0.1", @@ -7909,7 +7910,8 @@ }, "jest-pnp-resolver": { "version": "1.2.3", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "28.0.2", @@ -9097,7 +9099,8 @@ }, "ts-transformer-inline-file": { "version": "0.2.0", - "dev": true + "dev": true, + "requires": {} }, "tslib": { "version": "2.6.1" diff --git a/package.json b/package.json index 990f9b9d1..6689b7db0 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,9 @@ "tslib": "^2.5.0", "undici": "^5.19.1" }, + "overrides": { + "typescript": "^5.0.0" + }, "devDependencies": { "@types/glob": "^8.1.0", "@types/jest": "^28.1.7",