From 11e61dec9b8cfdc8f4261076667d71b44f999f23 Mon Sep 17 00:00:00 2001 From: Philip Peterson Date: Thu, 21 Aug 2025 20:40:00 -0700 Subject: [PATCH] Remove pnp --- bin/mk-snapshot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/mk-snapshot.js b/bin/mk-snapshot.js index 03ece94e..03cb6878 100644 --- a/bin/mk-snapshot.js +++ b/bin/mk-snapshot.js @@ -4,7 +4,6 @@ const path = require('path'); const fs = require('fs'); const electronLink = require('electron-link'); const {mkdirp} = require('fs-extra'); -const pnp = require("pnpapi"); const excludedModules = {}; @@ -42,7 +41,7 @@ async function main() { const outputBlobPath = `${baseDirPath}/cache/${npmConfigArch}`; await mkdirp(outputBlobPath); - const baseDir = pnp.resolveToUnqualified("electron-mksnapshot", __filename); + const baseDir = require.resolve("electron-mksnapshot"); const mksnapshotBinPath = path.resolve(baseDir, "bin", "mksnapshot" + (process.platform === "win32" ? ".exe" : "")); if (process.platform !== 'darwin') {