From c221aed0c2d76f11fbe85f50a539c587be05013d Mon Sep 17 00:00:00 2001 From: Gold856 <117957790+Gold856@users.noreply.github.com> Date: Sun, 10 May 2026 21:18:15 -0400 Subject: [PATCH] Approve dependencies in pnpm and pin pnpm version in Gradle (#2482) Fixes failure in #2481. The pnpm version was unpinned, so it quietly moved to pnpm 11, which introduced several breaking changes including one with approved builds (specifically, strictDepBuilds). Since we're on pnpm 11 anyways, use their new system for approving postinstalls for certain dependencies. --- build.gradle | 2 +- photon-client/pnpm-workspace.yaml | 3 +++ photon-server/build.gradle | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 photon-client/pnpm-workspace.yaml diff --git a/build.gradle b/build.gradle index 9d4725369..174a59a9a 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ plugins { id 'org.wpilib.GradleJni' version '2027.0.0' id "org.ysb33r.doxygen" version "2.0.0" apply false id 'com.gradleup.shadow' version '9.0.0' apply false - id "com.github.node-gradle.node" version "7.0.1" apply false + id "com.github.node-gradle.node" version "7.1.0" apply false } allprojects { diff --git a/photon-client/pnpm-workspace.yaml b/photon-client/pnpm-workspace.yaml new file mode 100644 index 000000000..10a61b78e --- /dev/null +++ b/photon-client/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +allowBuilds: + '@parcel/watcher': true + core-js: true diff --git a/photon-server/build.gradle b/photon-server/build.gradle index d38d34b44..51955adf9 100644 --- a/photon-server/build.gradle +++ b/photon-server/build.gradle @@ -43,6 +43,7 @@ shadowJar { node { nodeProjectDir = file("${projectDir}/../photon-client") + pnpmVersion = "11.0.9" } tasks.register('copyClientUIToResources', Copy) {