about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/bi/bitwarden-desktop/electron-builder-package-lock.patch
blob: 7a31b4a06076e270cf3af9cc598fa0c5cde89cb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0629bb5b90e54491263e371bc5594e9f97ba0af4 Mon Sep 17 00:00:00 2001
From: Andrew Marshall <andrew@johnandrewmarshall.com>
Date: Tue, 12 Mar 2024 11:48:15 -0400
Subject: [PATCH] Fix using unlocked dependencies in electron-builder

electron-builder will perform its "installing production dependencies"
step using this package.json, and without the package-lock.json, NPM
will try to fetch package metadata to install the latest, unlocked
dependencies.
---
 apps/desktop/webpack.main.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apps/desktop/webpack.main.js b/apps/desktop/webpack.main.js
index 9d683457d9..0ad707956e 100644
--- a/apps/desktop/webpack.main.js
+++ b/apps/desktop/webpack.main.js
@@ -70,6 +70,7 @@ const main = {
     new CopyWebpackPlugin({
       patterns: [
         "./src/package.json",
+        "./src/package-lock.json",
         { from: "./src/images", to: "images" },
         { from: "./src/locales", to: "locales" },
       ],
-- 
2.43.2