Skip to content

feat: add a prepare script so a git-dependency install builds itself - #5

Merged
Mearman merged 1 commit into
mainfrom
feat/prepare-script
Sep 10, 2026
Merged

feat: add a prepare script so a git-dependency install builds itself#5
Mearman merged 1 commit into
mainfrom
feat/prepare-script

Conversation

@Mearman

@Mearman Mearman commented Sep 10, 2026

Copy link
Copy Markdown
Member

Discovered while wiring wire-mesh's ts/packages/core to consume cddl.js as a git dependency (github:ExaDev/cddl.js#main, since it isn't published to npm): an npm-published install gets dist/ pre-built into the tarball, but a git-ref install is a plain source checkout with no dist/ at all, so every subpath export (./emitter, ./runtime, ./parse) failed to resolve.

prepare is the standard npm/pnpm lifecycle hook for exactly this case -- it runs after a git-ref install, before the dependent's own install finishes. Verified: rm -rf dist vendor/cddl/dist && pnpm run prepare rebuilds both from a clean checkout.

An npm-published install gets dist/ pre-built into the tarball, but a
git dependency (github:ExaDev/cddl.js#main) gets a plain checkout with
no dist/ at all -- every subpath export failed to resolve. prepare is
the standard npm/pnpm lifecycle hook for exactly this: it runs after a
git-ref install, before the dependent's own install finishes.
@Mearman
Mearman marked this pull request as ready for review September 10, 2026 09:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-10T09:11:01.466370Z 880c841 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit e402793 into main Sep 10, 2026
1 check passed
@Mearman
Mearman deleted the feat/prepare-script branch September 10, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant