[PR #3126] [MERGED] Replace pkg with @yao-pkg/pkg and target node20 #3875

Closed
opened 2026-04-25 00:17:24 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3126
Author: @mikiher
Created: 7/6/2024
Status: Merged
Merged: 7/6/2024
Merged by: @advplyr

Base: masterHead: pkg-replacement


📝 Commits (1)

  • 928b080 Replace pkg with @yao-pkg/pkg and target node20

📊 Changes

4 files changed (+7 additions, -6 deletions)

View changed files

📝 .github/workflows/integration-test.yml (+4 -4)
📝 build/linuxpackager (+1 -1)
📝 package.json (+1 -1)
📝 server/Server.js (+1 -0)

📄 Description

This replaces the use of pkg (which packs Node runtime and project code into a single binary) with the @yao-pkg/pkg fork. We do this since pkg is deprecated and in maintenance mode, and doesn't support packing a node20 runtime. Yao-pkg seems to be well maintained and used, and supports node20 targeting.

Changes made:

  • Replace node18 pkg targets with node20
  • Modify relevant workflows and scripts to install @yao-pkg/pkg instead of pkg
  • Log Node version when server goes up for clarity

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/3126 **Author:** [@mikiher](https://github.com/mikiher) **Created:** 7/6/2024 **Status:** ✅ Merged **Merged:** 7/6/2024 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `pkg-replacement` --- ### 📝 Commits (1) - [`928b080`](https://github.com/advplyr/audiobookshelf/commit/928b08067716350fd58963154e2818c5a0e83ca8) Replace pkg with @yao-pkg/pkg and target node20 ### 📊 Changes **4 files changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/integration-test.yml` (+4 -4) 📝 `build/linuxpackager` (+1 -1) 📝 `package.json` (+1 -1) 📝 `server/Server.js` (+1 -0) </details> ### 📄 Description This replaces the use of pkg (which packs Node runtime and project code into a single binary) with the @yao-pkg/pkg fork. We do this since pkg is deprecated and in maintenance mode, and doesn't support packing a node20 runtime. Yao-pkg seems to be well maintained and used, and supports node20 targeting. Changes made: - Replace node18 pkg targets with node20 - Modify relevant workflows and scripts to install @yao-pkg/pkg instead of pkg - Log Node version when server goes up for clarity --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:24 +02:00
adam closed this issue 2026-04-25 00:17:24 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3875