From 88d9c6b12c2834d87fb52858bd92d3ded1d8f34a Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Tue, 14 Jan 2025 19:19:13 -0500 Subject: [PATCH] Fixed require statement --- apps/desktop/scripts/before-pack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/scripts/before-pack.js b/apps/desktop/scripts/before-pack.js index b6b6a99b00a..b2d7d34ec7d 100644 --- a/apps/desktop/scripts/before-pack.js +++ b/apps/desktop/scripts/before-pack.js @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/no-require-imports, no-console */ -const fs = require("fs"); +const fse = require("fs-extra"); const path = require("path"); exports.default = run; @@ -13,7 +13,7 @@ async function run(context) { console.log("### Copying polkit policy file"); const policyPath = path.join(__dirname, "../resources/com.bitwarden.desktop.policy"); const targetDir = path.join(context.appOutDir, "/meta/polkit"); - if (fs.existsSync(policyPath)) { + if (fse.existsSync(policyPath)) { if (!fse.existsSync(targetDir)) { console.log("### Creating polkit directory " + targetDir); fse.mkdirSync(targetDir);