[PR #7478] [MERGED] [AI] Fix sync-server build not resolving subpath imports #33120

Closed
opened 2026-04-18 09:03:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7478
Author: @MatissJanis
Created: 4/11/2026
Status: Merged
Merged: 4/12/2026
Merged by: @MatissJanis

Base: masterHead: fix/sync-server-subpath-imports


📝 Commits (4)

  • d3195d9 [AI] Fix sync-server build not resolving subpath imports
  • bed1c1b [AI] Add release notes for sync-server subpath imports fix
  • 2545801 [AI] Simplify subpath import resolution using publishConfig.imports
  • 82b7158 [AI] Use replaceAll for wildcard substitution to satisfy CodeQL

📊 Changes

2 files changed (+55 additions, -5 deletions)

View changed files

📝 packages/sync-server/bin/add-import-extensions.mjs (+49 -5)
upcoming-release-notes/7478.md (+6 -0)

📄 Description

Description

After enabling subpath imports in the sync-server the yarn start:server operation no longer worked. Fixing it here.

n/a

Testing

yarn start:server

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

🔄 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/actualbudget/actual/pull/7478 **Author:** [@MatissJanis](https://github.com/MatissJanis) **Created:** 4/11/2026 **Status:** ✅ Merged **Merged:** 4/12/2026 **Merged by:** [@MatissJanis](https://github.com/MatissJanis) **Base:** `master` ← **Head:** `fix/sync-server-subpath-imports` --- ### 📝 Commits (4) - [`d3195d9`](https://github.com/actualbudget/actual/commit/d3195d9d79a20adbc114b84e706266c2eedd51a7) [AI] Fix sync-server build not resolving subpath imports - [`bed1c1b`](https://github.com/actualbudget/actual/commit/bed1c1b8d626d8c93f06b46fcfeb221435830425) [AI] Add release notes for sync-server subpath imports fix - [`2545801`](https://github.com/actualbudget/actual/commit/2545801c2ba98c9346cc1f298c401cdc7b10c53f) [AI] Simplify subpath import resolution using publishConfig.imports - [`82b7158`](https://github.com/actualbudget/actual/commit/82b7158c377bff16c83d0ebe88929055393c03e9) [AI] Use replaceAll for wildcard substitution to satisfy CodeQL ### 📊 Changes **2 files changed** (+55 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/sync-server/bin/add-import-extensions.mjs` (+49 -5) ➕ `upcoming-release-notes/7478.md` (+6 -0) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> After enabling subpath imports in the sync-server the `yarn start:server` operation no longer worked. Fixing it here. ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> n/a ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> `yarn start:server` ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed <!--- actual-bot-sections ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-18 09:03:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#33120