Skip to content

Commit 6e331d3

Browse files
authored
Use hardlinks for PNPM packages (#8357)
1 parent d46c948 commit 6e331d3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ct/zigbee2mqtt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function update_script() {
4747
rm -rf /opt/zigbee2mqtt/data
4848
mv /opt/z2m_backup/data /opt/zigbee2mqtt
4949
cd /opt/zigbee2mqtt
50+
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
5051
$STD pnpm install --frozen-lockfile
5152
$STD pnpm build
5253
msg_ok "Updated Zigbee2MQTT"

install/zigbee2mqtt-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ msg_info "Setting up Zigbee2MQTT"
3131
cd /opt/zigbee2mqtt/data || exit
3232
mv configuration.example.yaml configuration.yaml
3333
cd /opt/zigbee2mqtt || exit
34+
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
3435
$STD pnpm install --no-frozen-lockfile
3536
$STD pnpm build
3637
msg_ok "Installed Zigbee2MQTT"

0 commit comments

Comments
 (0)