Skip to content

Commit 795b26c

Browse files
authored
fix package.json build (#60)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Low risk config-only change that affects dependency build permissions during install; risk is limited to pnpm install/build behavior if the allowlist is incomplete or incorrect. > > **Overview** > Fixes pnpm build configuration by removing the `pnpm.onlyBuiltDependencies` block from `package.json` and introducing `pnpm-workspace.yaml` with an `allowBuilds` allowlist. > > This explicitly permits native/build-time dependencies (e.g., `@embedded-postgres/linux-x64`, `@swc/core`, `sharp`, `esbuild`) to run their install/build steps under pnpm. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a8d42cc. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent f88fcb6 commit 795b26c

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
"workflow": "4.1.0-beta.60",
4747
"zod": "^3.24.1"
4848
},
49-
"pnpm": {
50-
"onlyBuiltDependencies": [
51-
"@embedded-postgres/linux-x64"
52-
]
53-
},
5449
"devDependencies": {
5550
"@biomejs/biome": "2.4.4",
5651
"@playwright/test": "^1.58.2",

pnpm-workspace.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
allowBuilds:
2+
"@embedded-postgres/linux-x64": true
3+
"@nestjs/core": true
4+
"@swc/core": true
5+
cbor-extract: true
6+
esbuild: true
7+
protobufjs: true
8+
sharp: true

0 commit comments

Comments
 (0)