Skip to content

[pull] main from TryGhost:main#1052

Merged
pull[bot] merged 2 commits into
code:mainfrom
TryGhost:main
Apr 11, 2026
Merged

[pull] main from TryGhost:main#1052
pull[bot] merged 2 commits into
code:mainfrom
TryGhost:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 11, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

9larsons and others added 2 commits April 11, 2026 12:40
…pps (#27347)

no ref
- Add `exports` field to posts, stats, and activitypub package.json with
subpath exports
- Create `src/api.ts` in posts and stats as the public cross-package API
- Update admin to import from `@tryghost/posts/api`,
`@tryghost/stats/api`, `@tryghost/activitypub/api` instead of reaching
into `src/`

Admin was importing directly into other workspace packages' `src/` directories (`@tryghost/posts/src/providers/...`). This is a cross-package boundary violation — it bypasses the package's public API and couples admin to internal file structure; ultimately not a great pattern, and this makes it a bit easier when we want to combine these apps.

This is also prep work for `pnpm deploy` with `injectWorkspacePackages=true`. The subpath exports currently point at source files (`./src/api.ts`), which works for normal workspace resolution (pnpm symlinks to the full directory). When `injectWorkspacePackages` is enabled, the `files` field in each package will need to include `src/` (or the exports will need to point at built outputs in `dist/`). That change belongs in the pnpm deploy PR.
no issue
- add nrwl/nx-set-shas github action to set HEAD/BASE commit SHAs on
main branch CI runs.
- simplify unit test job by adding build as a dependent target for
test:unit scripts.
@pull pull Bot locked and limited conversation to collaborators Apr 11, 2026
@pull pull Bot added the ⤵️ pull label Apr 11, 2026
@pull pull Bot merged commit fe4ef54 into code:main Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants