Make pi-loop an installable CLI (Phase 1) #26
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-25/installable-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase 1 of making pi-loop an installable CLI (maintainer-only local install).
pi-loop now compiles to
dist/and installs as a globalpi-loopcommand,mirroring how pi itself is packaged. Publishing to Verdaccio is deferred to
Phase 2.
Closes #25.
Changes
tsconfig.build.json(outDir: dist,NodeNextmodule/resolution, excludes*.test.ts);buildnow runstsc -p tsconfig.build.json; added atypecheckscript (tsc --noEmit).bin→dist/cli.js; shebang changed from#!/usr/bin/env -S npx tsxto#!/usr/bin/env node; build marksdist/cli.jsexecutable viashx chmod +x(addedshxdevDep +clean).filesallowlist (dist,README.md) and apreparebuild hook;npm pack --dry-runships onlydist/+README.md.install:local(build && npm i -g .); thetsx/npm startdev workflow is preserved.with a scripts table, updated Prerequisites (Node >= 22.19.0), a Roadmap
(Phase 2 Verdaccio), and Usage now shows
pi-loop <ISSUE-REF>.HELP_TEXT) updated to documentpi-loop <ISSUE-REF>/pi-loop --helpinstead ofnpm start(with a new unit test).Testing
npm run buildemitsdist/(with executabledist/cli.js)npm i -g .succeeds; installedpi-loopruns from an unrelated repo(no
tsx/npx)npm pack --dry-runexcludessrc/and.pi-loop/(shipsdist/+README.mdonly)npm run typecheck,npm run lint,npm test(613 tests) all greenpi-loopproducing a Draft MR(manual acceptance — requires live creds + LLM)
Checklist