From 2a8cfa79c1765c5df968d19986b82cd40dea4bea Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 5 Aug 2025 21:22:58 +0800 Subject: [PATCH] chore: move all pnpm settings to `pnpm-workspace.yaml` (#4889) --------- Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> --- .npmrc | 2 -- package.json | 13 +------------ pnpm-workspace.yaml | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 14 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index ab953072..00000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -shell-emulator=true -auto-install-peers=false diff --git a/package.json b/package.json index a83b64e8..b9b1619f 100644 --- a/package.json +++ b/package.json @@ -208,16 +208,5 @@ "optional": true } }, - "packageManager": "pnpm@10.13.1", - "pnpm": { - "overrides": { - "ora>string-width": "^5", - "vite": "npm:rolldown-vite@latest" - }, - "patchedDependencies": { - "@types/mdurl@2.0.0": "patches/@types__mdurl@2.0.0.patch", - "markdown-it-anchor@9.2.0": "patches/markdown-it-anchor@9.2.0.patch" - }, - "neverBuiltDependencies": [] - } + "packageManager": "pnpm@10.13.1" } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 8d0353c9..eb3783b5 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,19 @@ packages: - docs - __tests__/* + +onlyBuiltDependencies: + - esbuild + - playwright-chromium + - simple-git-hooks + +overrides: + ora>string-width: ^5 + vite: npm:rolldown-vite@latest + +patchedDependencies: + '@types/mdurl@2.0.0': patches/@types__mdurl@2.0.0.patch + markdown-it-anchor@9.2.0: patches/markdown-it-anchor@9.2.0.patch + +autoInstallPeers: false +shellEmulator: true