🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
👷 build: migrate workspace to pnpm 12 (#19324)
Inneib65aae96b6fd
diff --git a/.github/workflows/bundle-analyzer.yml b/.github/workflows/bundle-analyzer.ymlindex 537e75e9e9d..5d0cf7fe13c 100644--- a/.github/workflows/bundle-analyzer.yml+++ b/.github/workflows/bundle-analyzer.yml@@ -29,16 +29,11 @@ jobs:- name: Ensure lockfile existsrun: |- # Temporarily override .npmrc lockfile=false setting- # to generate pnpm-lock.yaml for reproducible builds+ # pnpm 12 reads only auth/registry keys from .npmrc, and `lockfile: false`+ # lives in pnpm-workspace.yaml — force lockfile generation with the CLI flag.if [ ! -f "pnpm-lock.yaml" ]; thenecho "Generating pnpm-lock.yaml..."- # Create temporary .npmrc override- mv .npmrc .npmrc.bak- echo "lockfile=true" > .npmrc- cat .npmrc.bak >> .npmrc- pnpm i- mv .npmrc.bak .npmrc+ pnpm i --lockfilefi- name: Generate build secretsdiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex d18a32dc0dd..58f0f6787fb 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -249,6 +249,14 @@ jobs:env:NODE_OPTIONS: --max-old-space-size=8192+ # pnpm 12 writes broken relative symlinks for workspace members outside the desktop+ # workspace root (../../packages/*). Installing the root workspace relinks them so+ # tsgo can resolve sibling packages from source.+ - name: Relink root workspace members+ run: pnpm install --ignore-scripts+ env:+ NODE_OPTIONS: --max-old-space-size=8192+- name: Typecheck Desktoprun: pnpm type-checkworking-directory: apps/desktop@@ -358,7 +366,6 @@ jobs:options: >---health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5-ports:- 5432:5432diff --git a/.npmrc b/.npmrcindex a99986425a9..5a77d27f925 100644--- a/.npmrc+++ b/.npmrc@@ -1,20 +1 @@-lockfile=false-resolution-mode=highest-dedupe-peer-dependents=true--ignore-workspace-root-check=true-enable-pre-post-scripts=true---public-hoist-pattern[]=*@umijs/lint*-public-hoist-pattern[]=*changelog*-public-hoist-pattern[]=*commitlint*-public-hoist-pattern[]=*eslint*-public-hoist-pattern[]=*postcss*-public-hoist-pattern[]=*prettier*-public-hoist-pattern[]=*remark*-public-hoist-pattern[]=*semantic-release*-public-hoist-pattern[]=*stylelint*--public-hoist-pattern[]=@auth/core-public-hoist-pattern[]=pdfjs-dist+# pnpm 12 reads only auth/registry keys from .npmrc. Project settings live in pnpm-workspace.yaml.diff --git a/apps/cli/.npmrc b/apps/cli/.npmrcindex 6cc5e46826d..5a77d27f925 100644--- a/apps/cli/.npmrc+++ b/apps/cli/.npmrc@@ -1,14 +1 @@-lockfile=false-ignore-workspace-root-check=true--public-hoist-pattern[]=*@umijs/lint*-public-hoist-pattern[]=*unicorn*-public-hoist-pattern[]=*changelog*-public-hoist-pattern[]=*commitlint*-public-hoist-pattern[]=*eslint*-public-hoist-pattern[]=*postcss*-public-hoist-pattern[]=*prettier*-public-hoist-pattern[]=*remark*-public-hoist-pattern[]=*semantic-release*-public-hoist-pattern[]=*stylelint*-+# pnpm 12 reads only auth/registry keys from .npmrc. Project settings live in pnpm-workspace.yaml.diff --git a/apps/cli/package.json b/apps/cli/package.jsonindex 2dd1c5b5a0b..073307f449e 100644--- a/apps/cli/package.json+++ b/apps/cli/package.json@@ -67,11 +67,5 @@"publishConfig": {"access": "public","registry": "https://registry.npmjs.org"- },- "pnpm": {- "overrides": {- "@types/react": "19.2.13",- "antd": "6.3.5"- }}}diff --git a/apps/cli/pnpm-workspace.yaml b/apps/cli/pnpm-workspace.yamlindex f23a2b34b8d..3a61929f042 100644--- a/apps/cli/pnpm-workspace.yaml+++ b/apps/cli/pnpm-workspace.yaml@@ -18,5 +18,25 @@ packages:- '../../packages/file-loaders'- '../../packages/utils'- '.'++lockfile: false+ignoreWorkspaceRootCheck: true++publicHoistPattern:+ - '*@umijs/lint*'+ - '*unicorn*'+ - '*changelog*'+ - '*commitlint*'+ - '*eslint*'+ - '*postcss*'+ - '*prettier*'+ - '*remark*'+ - '*semantic-release*'+ - '*stylelint*'+allowBuilds:esbuild: true++overrides:+ '@types/react': 19.2.13+ antd: 6.3.5diff --git a/apps/desktop/.npmrc b/apps/desktop/.npmrcindex b95c6a571b8..35fb125b60e 100644--- a/apps/desktop/.npmrc+++ b/apps/desktop/.npmrc@@ -1,20 +1,4 @@-lockfile=true-shamefully-hoist=true-ignore-workspace-root-check=true+# pnpm 12 reads only auth/registry keys from .npmrc. Project settings live in pnpm-workspace.yaml.electron_mirror=https://npmmirror.com/mirrors/electron/electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/--public-hoist-pattern[]=*@umijs/lint*-public-hoist-pattern[]=*unicorn*-public-hoist-pattern[]=*changelog*-public-hoist-pattern[]=*commitlint*-public-hoist-pattern[]=*eslint*-public-hoist-pattern[]=*postcss*-public-hoist-pattern[]=*prettier*-public-hoist-pattern[]=*remark*-public-hoist-pattern[]=*semantic-release*-public-hoist-pattern[]=*stylelint*--public-hoist-pattern[]=@auth/core-public-hoist-pattern[]=pdfjs-distdiff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex be4dffeb13b..2805d680b85 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -131,18 +131,5 @@},"optionalDependencies": {"node-mac-permissions": "^2.5.0"- },- "pnpm": {- "onlyBuiltDependencies": [- "electron",- "electron-builder",- "node-mac-permissions"- ],- "overrides": {- "node-gyp": "^12.4.0",- "react": "19.2.7",- "react-dom": "19.2.7",- "vitest": "3.2.6"- }}}diff --git a/apps/desktop/pnpm-workspace.yaml b/apps/desktop/pnpm-workspace.yamlindex 6e83b0705d1..7d0a9dd65ea 100644--- a/apps/desktop/pnpm-workspace.yaml+++ b/apps/desktop/pnpm-workspace.yaml@@ -25,9 +25,45 @@ packages:- '../../packages/model-bank'- '../../packages/utils'- '.'++lockfile: true+shamefullyHoist: true+ignoreWorkspaceRootCheck: true++publicHoistPattern:+ - '*@umijs/lint*'+ - '*unicorn*'+ - '*changelog*'+ - '*commitlint*'+ - '*eslint*'+ - '*postcss*'+ - '*prettier*'+ - '*remark*'+ - '*semantic-release*'+ - '*stylelint*'+ - '@auth/core'+ - 'pdfjs-dist'+allowBuilds:- electron: set this to true or false- electron-winstaller: set this to true or false- esbuild: set this to true or false- get-windows: set this to true or false- node-mac-permissions: set this to true or false+ electron: true+ electron-builder: true+ electron-winstaller: false+ esbuild: false+ get-windows: false+ node-mac-permissions: true+ protobufjs: false++overrides:+ node-gyp: ^12.4.0+ react: 19.2.7+ react-dom: 19.2.7+ vitest: 3.2.6+minimumReleaseAgeExclude:+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'+ - '@auv-js/[email protected]'diff --git a/package.json b/package.jsonindex 0c6c3fa7a9d..3c5030dcdc2 100644--- a/package.json+++ b/package.json@@ -582,38 +582,9 @@"vite-tsconfig-paths": "^6.1.1","vitest": "3.2.6"},- "packageManager": "[email protected]+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",+ "packageManager": "[email protected]+sha512.961aa41fb077da3a04a441d9f8e15ebc0c96da8ef710b2eb67bf9ee7cb0610eabd48f1fd85f51cffe73846785fa0f87c56a3a872a1d893f8446741b5cce45457","publishConfig": {"access": "public","registry": "https://registry.npmjs.org"- },- "pnpm": {- "onlyBuiltDependencies": [- "@lobehub/editor",- "ffmpeg-static",- "workerd"- ],- "overrides": {- "@ant-design/icons": "6.3.2",- "@react-pdf/image": "3.0.4",- "@types/react": "19.2.13",- "@vitest/coverage-v8": "3.2.6",- "antd": "6.3.5",- "baseline-browser-mapping": "2.10.31",- "drizzle-orm": "^0.45.2",- "fast-xml-parser": "5.4.2",- "lexical": "0.42.0",- "node-gyp": "^12.4.0",- "pdfjs-dist": "5.4.530",- "react": "19.2.7",- "react-dom": "19.2.7",- "s3rver>fast-xml-parser": "3.21.1",- "stylelint-config-clean-order": "7.0.0",- "typescript": "6.0.3",- "vitest": "3.2.6"- },- "patchedDependencies": {- "@upstash/qstash": "patches/@upstash__qstash.patch"- }}}diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 78c168fe5c4..d6d352c7c18 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,4 +1,22 @@lockfile: false+resolutionMode: highest+dedupePeerDependents: true+ignoreWorkspaceRootCheck: true+enablePrePostScripts: true++publicHoistPattern:+ - '*@umijs/lint*'+ - '*changelog*'+ - '*commitlint*'+ - '*eslint*'+ - '*postcss*'+ - '*prettier*'+ - '*remark*'+ - '*semantic-release*'+ - '*stylelint*'+ - '@auth/core'+ - 'pdfjs-dist'+packages:- packages/**- .@@ -12,18 +30,37 @@ packages:minimumReleaseAgeExclude:- '@lobehub/[email protected]'-onlyBuiltDependencies:- - '@google/genai'- - '@lobehub/editor'- - '@vercel/speed-insights'+allowBuilds:+ '@google/genai': true+ '@lobehub/editor': true+ '@vercel/speed-insights': true+ core-js: false+ es5-ext: false+ esbuild: false+ ffmpeg-static: true+ protobufjs: false+ sharp: false+ unrs-resolver: false+ workerd: trueoverrides:- jose: ^6.1.3- stylelint-config-clean-order: 7.0.0- pdfjs-dist: 5.4.530- react: 19.2.4- react-dom: 19.2.4+ '@ant-design/icons': 6.3.2'@react-pdf/image': 3.0.4+ '@types/react': 19.2.13+ '@vitest/coverage-v8': 3.2.6+ antd: 6.3.5+ baseline-browser-mapping: 2.10.31+ drizzle-orm: ^0.45.2+ fast-xml-parser: 5.4.2+ lexical: 0.42.0+ node-gyp: ^12.4.0+ pdfjs-dist: 5.4.530+ react: 19.2.7+ react-dom: 19.2.7+ 's3rver>fast-xml-parser': 3.21.1+ stylelint-config-clean-order: 7.0.0+ typescript: 6.0.3+ vitest: 3.2.6patchedDependencies:'@upstash/qstash': patches/@upstash__qstash.patchdiff --git a/vercel.json b/vercel.jsonindex daf2d1e4113..bc1503e7498 100644--- a/vercel.json+++ b/vercel.json@@ -49,7 +49,7 @@]}],- "installCommand": "npx [email protected] install",+ "installCommand": "npx [email protected] install","rewrites": [{"source": "/_dangerous_local_dev_proxy",