chore: build before stage publish#63
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c147fe275e
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "lint": "rslint && prettier -c .", | ||
| "lint:write": "rslint --fix && prettier -w .", | ||
| "prepare": "simple-git-hooks && npm run build", | ||
| "prepare": "simple-git-hooks", |
There was a problem hiding this comment.
Restore build for git-based installs
For consumers that install this package directly from a git ref, the install lifecycle relies on prepare to generate publish artifacts from source; after this change it only installs hooks. Since dist/ is gitignored and the package exports/types all point at dist/index.*, those git installs will complete without dist/index.js or dist/index.d.ts, causing imports and type resolution to fail even though the release workflow still builds before staged publishing.
Useful? React with 👍 / 👎.
Summary
pnpm stage publish.scripts.preparewhere present.Validation
pnpm build.git diff --check.