diff --git a/.npmrc b/.npmrc index 48804d2f..29b599a4 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,3 @@ -# Allow build scripts for native dependencies -only-built-dependencies[]=sharp -only-built-dependencies[]=unrs-resolver \ No newline at end of file +# Build script allowances for native dependencies live in pnpm-workspace.yaml +# (allowBuilds) — the old `only-built-dependencies` key is no longer honored by +# current pnpm versions. \ No newline at end of file diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..6f1621a5 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,5 @@ +# Allow native build scripts for dependencies with ignored builds (pnpm v10+). +# This replaces the old `onlyBuiltDependencies` setting. +allowBuilds: + sharp: true + unrs-resolver: true