Skip to content

Build on install so the package works as a git dependency - #4

Merged
govindup63 merged 1 commit into
mainfrom
chore/installable-from-git
Aug 22, 2026
Merged

govindup63 merged 1 commit into
mainfrom
chore/installable-from-git

Conversation

@govindup63

Copy link
Copy Markdown
Contributor

dist/ is gitignored and the package is not published to npm, so npm i github:RemoteStar-AI/rsredact installed a package with no entry point.

npm runs prepare after installing a git dependency, and installs devDependencies in order to do it, so building there makes the repo directly installable without publishing anything.

prepublishOnly stays for the npm path. Both call the same build.

Needed because the web UI is a separate repo that consumes this one. Tests 14/14, typecheck clean.

dist/ is gitignored and the package is not published, so `npm i
github:RemoteStar-AI/rsredact` installed a package with no entry point.
npm runs `prepare` after installing a git dependency, and it installs
devDependencies to do it, so building there makes the repo directly
installable.

`prepublishOnly` stays for the npm path. Both call the same build.

Signed-off-by: Govind Pandey <govindup63@gmail.com>
@govindup63
govindup63 merged commit 7ff19e0 into main Aug 22, 2026
6 checks passed
@govindup63
govindup63 deleted the chore/installable-from-git branch August 22, 2026 05:09
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