Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

chore(deps): update pnpm to v11 (#5660)

homarr-renovate[bot]b8e0123893e3
diff --git a/.github/renovate.json5 b/.github/renovate.json5
index 269a4d2ff..ebfca8af4 100644
--- a/.github/renovate.json5
+++ b/.github/renovate.json5
@@ -22,7 +22,7 @@
automerge: true,
},
{
- // disallow automerge for onlyBuiltDependencies
+ // disallow automerge for dependencies requiring postinstall scripts
matchPackageNames: [
"@tree-sitter-grammars/tree-sitter-yaml",
"bcrypt",
@@ -39,7 +39,7 @@
],
// Updates lockfile for prebuilt-debian after if package.json is updated, otherwise only root lockfile is updated
postUpgradeTasks: {
- commands: ["cd deployments/prebuilt-debian && pnpm install --ignore-workspace --lockfile-only"],
+ commands: ["cd deployments/prebuilt-debian && pnpm install --lockfile-only"],
fileFilters: ["deployments/prebuilt-debian/pnpm-lock.yaml"],
executionMode: "update",
},
diff --git a/.npmrc b/.npmrc
deleted file mode 100644
index 34451fb2f..000000000
--- a/.npmrc
+++ /dev/null
@@ -1,6 +0,0 @@
-# Expo doesn't play nice with pnpm by default.
-# The symbolic links of pnpm break the rules of Expo monorepos.
-# @link https://docs.expo.dev/guides/monorepos/#common-issues
-node-linker=hoisted
-strict-peer-dependencies=false
-engine-strict=true
\ No newline at end of file
diff --git a/deployments/prebuilt-debian/Dockerfile b/deployments/prebuilt-debian/Dockerfile
index 8ac61693e..7ca2aafb1 100644
--- a/deployments/prebuilt-debian/Dockerfile
+++ b/deployments/prebuilt-debian/Dockerfile
@@ -2,5 +2,6 @@ FROM node:24.15.0-trixie AS base
WORKDIR /app
COPY package.json .
COPY pnpm-lock.yaml .
+COPY pnpm-workspace.yaml .
RUN corepack enable pnpm && pnpm install --frozen-lockfile
CMD ["sleep", "60s"]
\ No newline at end of file
diff --git a/deployments/prebuilt-debian/package.json b/deployments/prebuilt-debian/package.json
index 15876ecc1..4df35b776 100644
--- a/deployments/prebuilt-debian/package.json
+++ b/deployments/prebuilt-debian/package.json
@@ -4,14 +4,9 @@
"dependencies": {
"better-sqlite3": "^12.9.0"
},
- "packageManager": "[email protected]",
+ "packageManager": "[email protected]",
"engines": {
"node": ">=24.15.0",
- "pnpm": ">=10.33.2"
- },
- "pnpm": {
- "onlyBuiltDependencies": [
- "better-sqlite3"
- ]
+ "pnpm": ">=11.0.3"
}
}
diff --git a/deployments/prebuilt-debian/pnpm-workspace.yaml b/deployments/prebuilt-debian/pnpm-workspace.yaml
new file mode 100644
index 000000000..65783dc34
--- /dev/null
+++ b/deployments/prebuilt-debian/pnpm-workspace.yaml
@@ -0,0 +1,2 @@
+allowBuilds:
+ better-sqlite3: true
diff --git a/package.json b/package.json
index 5cdd91982..96f35e0cc 100644
--- a/package.json
+++ b/package.json
@@ -57,55 +57,12 @@
"turbo": "catalog:",
"typescript": "catalog:",
"vite-tsconfig-paths": "catalog:",
- "vitest": "catalog:"
+ "vitest": "catalog:",
+ "yaml": "catalog:"
},
- "packageManager": "[email protected]",
+ "packageManager": "[email protected]",
"engines": {
"node": ">=24.15.0",
- "pnpm": ">=10.33.2"
- },
- "pnpm": {
- "onlyBuiltDependencies": [
- "@tree-sitter-grammars/tree-sitter-yaml",
- "bcrypt",
- "better-sqlite3",
- "cpu-features",
- "esbuild",
- "sharp",
- "ssh2",
- "tree-sitter",
- "tree-sitter-json"
- ],
- "overrides": {
- "@babel/helpers@<7.26.10": ">=7.29.2",
- "@babel/runtime@<7.26.10": ">=7.29.2",
- "axios@>=1.0.0 <1.8.2": ">=1.16.0",
- "brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5",
- "brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5",
- "esbuild@<=0.24.2": ">=0.28.0",
- "form-data@>=4.0.0 <4.0.4": ">=4.0.5",
- "hono@<4.6.5": ">=4.12.16",
- "linkifyjs@<4.3.2": ">=4.3.2",
- "nanoid@>=4.0.0 <5.0.9": ">=5.1.11",
- "prismjs@<1.30.0": ">=1.30.0",
- "proxmox-api>undici": "7.24.6",
- "react-is": "^19.2.5",
- "rollup@>=4.0.0 <4.22.4": ">=4.60.2",
- "sha.js@<=2.4.11": ">=2.4.12",
- "tar-fs@>=3.0.0 <3.0.9": ">=3.1.2",
- "tar-fs@>=2.0.0 <2.1.3": ">=3.1.2",
- "tmp@<=0.2.3": ">=0.2.5",
- "vite@>=5.0.0 <=5.4.18": ">=8.0.10"
- },
- "patchedDependencies": {
- "@types/node-unifi": "patches/@types__node-unifi.patch",
- "trpc-to-openapi": "patches/trpc-to-openapi.patch"
- },
- "allowUnusedPatches": true,
- "ignoredBuiltDependencies": [
- "@scarf/scarf",
- "core-js-pure",
- "protobufjs"
- ]
+ "pnpm": ">=11.0.3"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5afcab7af..b33836c1b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -566,8 +566,8 @@ overrides:
'@babel/helpers@<7.26.10': '>=7.29.2'
'@babel/runtime@<7.26.10': '>=7.29.2'
axios@>=1.0.0 <1.8.2: '>=1.16.0'
- brace-expansion@>=2.0.0 <=2.0.1: '>=5.0.5'
brace-expansion@>=1.0.0 <=1.1.11: '>=5.0.5'
+ brace-expansion@>=2.0.0 <=2.0.1: '>=5.0.5'
esbuild@<=0.24.2: '>=0.28.0'
form-data@>=4.0.0 <4.0.4: '>=4.0.5'
hono@<4.6.5: '>=4.12.16'
@@ -578,18 +578,14 @@ overrides:
react-is: ^19.2.5
rollup@>=4.0.0 <4.22.4: '>=4.60.2'
sha.js@<=2.4.11: '>=2.4.12'
- tar-fs@>=3.0.0 <3.0.9: '>=3.1.2'
tar-fs@>=2.0.0 <2.1.3: '>=3.1.2'
+ tar-fs@>=3.0.0 <3.0.9: '>=3.1.2'
tmp@<=0.2.3: '>=0.2.5'
vite@>=5.0.0 <=5.4.18: '>=8.0.10'
patchedDependencies:
- '@types/node-unifi':
- hash: 5e6ae51e2a17a7f9729bfa30b0eb3d0842a5810ac6db47603ab4a6efa1ed84c5
- path: patches/@types__node-unifi.patch
- trpc-to-openapi:
- hash: 2ca3c16af0fcca0c736697ad4fe553a14f794524fa9ce0d5c3e8ee4aea76090c
- path: patches/trpc-to-openapi.patch
+ '@types/node-unifi': 5e6ae51e2a17a7f9729bfa30b0eb3d0842a5810ac6db47603ab4a6efa1ed84c5
+ trpc-to-openapi: 2ca3c16af0fcca0c736697ad4fe553a14f794524fa9ce0d5c3e8ee4aea76090c
importers:
@@ -664,6 +660,9 @@ importers:
vitest:
specifier: 'catalog:'
+ yaml:
+ specifier: 'catalog:'
+ version: 2.8.4
apps/nextjs:
dependencies:
@@ -1455,7 +1454,7 @@ importers:
dependencies:
'@t3-oss/env-nextjs':
specifier: 'catalog:'
better-sqlite3:
specifier: 'catalog:'
version: 12.9.0
@@ -1464,7 +1463,7 @@ importers:
version: 0.2.9
drizzle-orm:
specifier: 'catalog:'
ioredis:
specifier: 'catalog:'
version: 5.10.1
@@ -1718,10 +1717,10 @@ importers:
version: 0.31.10
drizzle-orm:
specifier: 'catalog:'
drizzle-zod:
specifier: 'catalog:'
mysql2:
specifier: 'catalog:'
version: 3.22.3(@types/[email protected])
@@ -3001,12 +3000,6 @@ packages:
resolution: {integrity: sha512-2aDL3WUv8hMJb2L3r/PIQWsTLyq7RQr3v9xD16fiz6O8ys1xEyLhhTOv8gxtZvJiTzjTF5pHoArvRdesGL1DMQ==}
hasBin: true
- resolution: {integrity: sha512-c2UQdKgP2eqqDArfBqQIJppxJHvNNXuQPeuSPlDML4rjw+f1cu0qAlzOG4b8ujgm9ctIDWwhpyw6gjG5ledIVQ==}
-
- resolution: {integrity: sha512-JPy/NGWn/lvf1WmGCPw2VGpBg5utZraE84I7wli18EDF3p3zc/e9WolT35tINeZO3l7C77SjqRJeAUoT0CvMRg==}
-
'@asamuzakjp/[email protected]':
resolution: {integrity: sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==}
engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}
@@ -4283,14 +4276,6 @@ packages:
'@kwsites/[email protected]':
resolution: {integrity: sha512-m9/5YGR18lIwxSFDwfE3oA7bWuq9kdau6ugN4H2rJeyhFQZcG9AgSHkQtSD15a8WvTgfz9aikZMrKPHvbpqFiw==}
- '@libsql/[email protected]':
- resolution: {integrity: sha512-gB/jtz0xuwrqAHApBv9e9JSew2030Fhj2edyZ83InZ4yPj/Q2LTUlEhaspEYT0T0xsAGqPy38uGrmq/OGS+DdQ==}
- bundledDependencies:
- - '@libsql/libsql-wasm-experimental'
-
- '@libsql/[email protected]':
- resolution: {integrity: sha512-nhbuXf7GP3PSZgdCY2Ecj8vz187ptHlZQ0VRc751oB2C1W8jQUXKKklvt7t1LJiUTQBVJuadF628eUk+3cRi4Q==}
-
'@mantine/[email protected]':
resolution: {integrity: sha512-oudif3EUH7Nb9DPm0abAPxpFYDWWjR3k2S5ll0/CcB+pJzlhwaBG19QwpOJaRA6VAvAXDDKOXCO4mi9XCEN78g==}
peerDependencies:
@@ -4666,9 +4651,6 @@ packages:
resolution: {integrity: sha512-HNjmfLQEVRZmHRET336f20H/8kOozUGwk7yajvsonjNxbj2wBTK1WsQuHkD5yYh9RxFGL2EyDHryOihOwUoKDA==}
engines: {node: '>= 10.0.0'}
- '@petamoriken/[email protected]':
- resolution: {integrity: sha512-8awtpHXCx/bNpFt4mt2xdkgtgVvKqty8VbjHI/WWWQuEw+KLzFot3f4+LkQY9YmOtq7A5GdOnqoIC8Pdygjk2g==}
-
'@pinojs/[email protected]':
resolution: {integrity: sha512-k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==}
@@ -6112,9 +6094,6 @@ packages:
resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-IZCEEXaJ8g+Ijd59WtSYwtjnqXiwM8sWQ5EjGamcto7+HVN9eK0C4p0zDlCuAwWhpqr6fIBkxPuYDl4/Mcj/+Q==}
-
resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}
engines: {node: '>= 0.4'}
@@ -7094,10 +7073,6 @@ packages:
resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}
engines: {node: '>=18'}
@@ -7561,11 +7536,6 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
- resolution: {integrity: sha512-Oq3Fjay71s00xzDc0BF/mpcLmnA+uRqMEJK8p5K4PaZjUEsxaeo+kR9OHBVAf289/qPd+0OcLOLUN0UhqiUCog==}
- engines: {node: '>= 18.0.0'}
- hasBin: true
-
resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==}
@@ -8109,10 +8079,6 @@ packages:
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
- resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}
- engines: {node: '>=18'}
-
resolution: {integrity: sha512-8n+j+6ypTHvriJwFOQ2qusQ6bzGjZVcR3jbe1pBpLcGI1dn4WIl0ctLBngqE5QttquQBAlKXwJeTMw+X7x7qKw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24.0.0}
@@ -8181,9 +8147,6 @@ packages:
react:
optional: true
- resolution: {integrity: sha512-hNngCeKxIUQiEUN3GPJOkz4wF/YvdUdbNL9hsBcMQTkKzboD7T/q3OYOuuPZLUE6dBxSGpwhk5mwuDud7JVAow==}
-
resolution: {integrity: sha512-rML+NkoD08p5Dllpjo0ffy4jRHeY6Zsapvr/W86N7E0yuzAO6qa5X9+xog6zQNlH102J7IXljNY2FtS6Lj3ucg==}
@@ -10980,11 +10943,6 @@ packages:
engines: {node: '>= 8'}
hasBin: true
- resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}
- engines: {node: ^16.13.0 || >=18.0.0}
- hasBin: true
-
resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
engines: {node: '>=8'}
@@ -11111,11 +11069,6 @@ packages:
resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
- resolution: {integrity: sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==}
- engines: {node: '>= 14.6'}
- hasBin: true
-
resolution: {integrity: sha512-ml/JPOj9fOQK8RNnWojA67GbZ0ApXAUlN2UQclwv2eVgTgn7O9gg9o7paZWKMp4g0H3nTLtS9LVzhkpOFIKzog==}
engines: {node: '>= 14.6'}
@@ -11218,14 +11171,6 @@ snapshots:
'@antfu/[email protected]': {}
- dependencies:
- '@ark/util': 0.46.0
- optional: true
-
- optional: true
-
'@asamuzakjp/[email protected]':
dependencies:
'@asamuzakjp/generational-cache': 1.0.1
@@ -12319,17 +12264,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@libsql/[email protected]':
- dependencies:
- '@libsql/core': 0.14.0
- js-base64: 3.7.8
- optional: true
-
- '@libsql/[email protected]':
- dependencies:
- js-base64: 3.7.8
- optional: true
-
dependencies:
@@ -12734,9 +12668,6 @@ snapshots:
'@parcel/watcher-win32-ia32': 2.4.1
'@parcel/watcher-win32-x64': 2.4.1
- '@petamoriken/[email protected]':
- optional: true
-
'@pinojs/[email protected]': {}
@@ -13478,17 +13409,15 @@ snapshots:
dependencies:
'@swc/counter': 0.1.3
optionalDependencies:
- arktype: 2.1.20
typescript: 5.9.3
zod: 4.4.2
dependencies:
+ '@t3-oss/env-core': 0.13.11([email protected])([email protected])
optionalDependencies:
- arktype: 2.1.20
typescript: 5.9.3
zod: 4.4.2
@@ -14527,12 +14456,6 @@ snapshots:
- dependencies:
- '@ark/schema': 0.46.0
- '@ark/util': 0.46.0
- optional: true
-
dependencies:
call-bound: 1.0.4
@@ -15281,7 +15204,7 @@ snapshots:
dependencies:
- yaml: 2.8.3
+ yaml: 2.8.4
dependencies:
@@ -15364,19 +15287,17 @@ snapshots:
esbuild: 0.25.12
tsx: 4.21.0
optionalDependencies:
- '@libsql/client-wasm': 0.14.0
'@types/better-sqlite3': 7.6.13
'@types/pg': 8.20.0
better-sqlite3: 12.9.0
- gel: 2.0.0
mysql2: 3.22.3(@types/[email protected])
pg: 8.20.0
dependencies:
zod: 4.4.2
@@ -15459,9 +15380,6 @@ snapshots:
- optional: true
-
@@ -16132,18 +16050,6 @@ snapshots:
- dependencies:
- '@petamoriken/float16': 3.9.3
- debug: 4.4.3
- env-paths: 3.0.0
- semver: 7.7.4
- shell-quote: 1.8.3
- which: 4.0.0
- transitivePeerDependencies:
- - supports-color
- optional: true
-
dependencies:
is-property: 1.0.2
@@ -16676,9 +16582,6 @@ snapshots:
- optional: true
-
dependencies:
dompurify: 3.4.2
@@ -16762,9 +16665,6 @@ snapshots:
'@types/react': 19.2.14
react: 19.2.5
- optional: true
-
@@ -17645,7 +17545,7 @@ snapshots:
dependencies:
- yaml: 2.8.3
+ yaml: 2.8.4
dependencies:
@@ -19993,11 +19893,6 @@ snapshots:
dependencies:
isexe: 2.0.0
- dependencies:
- isexe: 3.1.5
- optional: true
-
dependencies:
siginfo: 2.0.0
@@ -20112,8 +20007,6 @@ snapshots:
-
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 7978ed6f1..4f7576ad6 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -2,6 +2,22 @@ packages:
- apps/*
- packages/*
- tooling/*
+allowBuilds:
+ "@scarf/scarf": false
+ "@swc/core": false
+ "@tree-sitter-grammars/tree-sitter-yaml": true
+ bcrypt: true
+ better-sqlite3: true
+ core-js-pure: false
+ cpu-features: true
+ esbuild: true
+ protobufjs: false
+ sharp: true
+ ssh2: true
+ tree-sitter: true
+ tree-sitter-json: true
+ nice-napi: false
+allowUnusedPatches: true
catalog:
"@auth/core": ^0.41.2
"@auth/drizzle-adapter": ^1.11.2
@@ -13,7 +29,7 @@ catalog:
"@dnd-kit/sortable": ^10.0.0
"@dnd-kit/utilities": ^3.2.2
"@drizzle-team/brocli": ^0.12.0
- '@eslint/js': 10.0.1
+ "@eslint/js": 10.0.1
"@extractus/feed-extractor": 7.1.7
"@gitbeaker/rest": ^43.8.0
"@homarr/gridstack": ^1.12.0
@@ -189,7 +205,32 @@ catalog:
zod-form-data: ^3.0.1
zod-validation-error: ^5.0.0
catalogMode: strict
+engineStrict: true
minimumReleaseAge: 4320
minimumReleaseAgeExclude:
- next
- "@next/*"
+nodeLinker: hoisted
+overrides:
+ "@babel/helpers@<7.26.10": ">=7.29.2"
+ "@babel/runtime@<7.26.10": ">=7.29.2"
+ "axios@>=1.0.0 <1.8.2": ">=1.16.0"
+ "brace-expansion@>=1.0.0 <=1.1.11": ">=5.0.5"
+ "brace-expansion@>=2.0.0 <=2.0.1": ">=5.0.5"
+ "esbuild@<=0.24.2": ">=0.28.0"
+ "form-data@>=4.0.0 <4.0.4": ">=4.0.5"
+ "hono@<4.6.5": ">=4.12.16"
+ "linkifyjs@<4.3.2": ">=4.3.2"
+ "nanoid@>=4.0.0 <5.0.9": ">=5.1.11"
+ "prismjs@<1.30.0": ">=1.30.0"
+ "proxmox-api>undici": "7.24.6"
+ "react-is": "^19.2.5"
+ "rollup@>=4.0.0 <4.22.4": ">=4.60.2"
+ "sha.js@<=2.4.11": ">=2.4.12"
+ "tar-fs@>=2.0.0 <2.1.3": ">=3.1.2"
+ "tar-fs@>=3.0.0 <3.0.9": ">=3.1.2"
+ "tmp@<=0.2.3": ">=0.2.5"
+ "vite@>=5.0.0 <=5.4.18": ">=8.0.10"
+patchedDependencies:
+ "@types/node-unifi": "patches/@types__node-unifi.patch"
+ trpc-to-openapi: "patches/trpc-to-openapi.patch"
diff --git a/test/renovate.spec.ts b/test/renovate.spec.ts
index 0f40a8061..2b8236ce6 100644
--- a/test/renovate.spec.ts
+++ b/test/renovate.spec.ts
@@ -2,21 +2,24 @@ import fs from "fs/promises";
import { join } from "path";
import json5 from "json5";
import { describe, test } from "vitest";
+import { parse as parseYaml } from "yaml";
describe("Renovate configuration tests", () => {
- test("automerge should be disabled for onlyBuiltDependencies", async () => {
- const packageJson = await import("../package.json");
+ test("automerge should be disabled for built dependencies", async () => {
+ const pnpmConfig = await fs.readFile(join(__dirname, "../pnpm-workspace.yaml"), "utf-8").then(parseYaml);
const renovateConfig = await fs.readFile(join(__dirname, "../.github/renovate.json5"), "utf-8").then(json5.parse);
- const onlyBuiltDependencies = packageJson.pnpm.onlyBuiltDependencies;
+ const dependenciesWithBuilt = Object.entries(pnpmConfig.allowBuilds)
+ .filter(([_, value]) => value === true)
+ .map(([key, _]) => key);
const automergeDisabledDeps = renovateConfig.packageRules
.filter((rule: any) => rule.automerge === false)
.flatMap((rule: any) => rule.matchPackageNames || []);
- const missingDeps = onlyBuiltDependencies.filter((dep: string) => !automergeDisabledDeps.includes(dep));
+ const missingDeps = dependenciesWithBuilt.filter((dep: string) => !automergeDisabledDeps.includes(dep));
if (missingDeps.length > 0) {
throw new Error(
- `The following onlyBuiltDependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`,
+ `The following built dependencies are missing automerge disable rules in renovate.json5: ${missingDeps.join(", ")}`,
);
}
});