Skip to content

Remove "./" from pi-ai bin path so lockfiles stop flip-flopping - #6812

Merged
badlogic merged 1 commit into
earendil-works:mainfrom
jmfederico:fix/pi-ai-bin-path
Jul 20, 2026
Merged

badlogic merged 1 commit into
earendil-works:mainfrom
jmfederico:fix/pi-ai-bin-path

Conversation

@jmfederico

@jmfederico jmfederico commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6811

Warning

edit: Sorry, I should have read CONTRIBUTING.md before publishing this PR.
I fully acknowledge my mistake opening it without an lgtm. 😢

One line change:

-  "pi-ai": "./dist/cli.js"
+  "pi-ai": "dist/cli.js"

package-lock.json in my project won't stay put. One line keeps toggling:

"pi-ai": "dist/cli.js"  <->  "pi-ai": "./dist/cli.js"

Details in #6811

The npm registry normalizes bin paths in packument metadata
("dist/cli.js") while the published tarball keeps the authored
"./dist/cli.js". npm consumers get perpetual one-line
package-lock.json flips depending on whether resolution used
registry metadata or the extracted package.

Drop the "./" prefix to match the registry-normalized form and the
sibling coding-agent package.

Fixes #6811
@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@github-actions github-actions Bot closed this Jul 18, 2026
@jmfederico jmfederico changed the title fix(pi-ai): normalize bin path to avoid consumer lockfile churn Remove "./" from pi-ai bin path so lockfiles stop flip-flopping Jul 18, 2026
@badlogic badlogic reopened this Jul 20, 2026
@badlogic
badlogic merged commit 916de90 into earendil-works:main Jul 20, 2026
1 check passed
@jmfederico
jmfederico deleted the fix/pi-ai-bin-path branch July 20, 2026 08:42
gojack10 pushed a commit to gojack10/pi-mono that referenced this pull request Aug 25, 2026
…ndil-works#6812)

The npm registry normalizes bin paths in packument metadata
("dist/cli.js") while the published tarball keeps the authored
"./dist/cli.js". npm consumers get perpetual one-line
package-lock.json flips depending on whether resolution used
registry metadata or the extracted package.

Drop the "./" prefix to match the registry-normalized form and the
sibling coding-agent package.

Fixes earendil-works#6811
jinhuang712 pushed a commit to jinhuang712/pi that referenced this pull request Sep 11, 2026
…ndil-works#6812)

The npm registry normalizes bin paths in packument metadata
("dist/cli.js") while the published tarball keeps the authored
"./dist/cli.js". npm consumers get perpetual one-line
package-lock.json flips depending on whether resolution used
registry metadata or the extracted package.

Drop the "./" prefix to match the registry-normalized form and the
sibling coding-agent package.

Fixes earendil-works#6811
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.

pi-ai bin path flip-flops in lockfiles from depending packages

2 participants