Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bun publish does not execute prepare correctly #18055

Open
fel1x-developer opened this issue Mar 11, 2025 · 2 comments
Open

bun publish does not execute prepare correctly #18055

fel1x-developer opened this issue Mar 11, 2025 · 2 comments
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client

Comments

@fel1x-developer
Copy link
Contributor

What version of Bun is running?

1.2.5+013fdddc6

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

clone https://gitlab.com/minsoochoo/audio-player

$ bun install
$ bun publish
bun publish v1.2.5 (013fdddc)
$ svelte-kit sync && svelte-package && publint
/bin/bash: svelte-kit: command not found
error: script "prepack" exited with code 127

What is the expected behavior?

In case of npm:

$ npm publish

> @minsoochoo/[email protected] prepack
> svelte-kit sync && svelte-package && publint

src/lib -> dist
Running publint v0.3.9 for @minsoochoo/audio-player...
Packing files with `bun pack`...
Linting...
All good!

> @minsoochoo/[email protected] prepare
> svelte-kit sync || echo ''

What do you see instead?

$ bun publish
bun publish v1.2.5 (013fdddc)
$ svelte-kit sync && svelte-package && publint
/bin/bash: svelte-kit: command not found
error: script "prepack" exited with code 127

Additional information

No response

@fel1x-developer fel1x-developer added bug Something isn't working needs triage labels Mar 11, 2025
@RiskyMH RiskyMH added bun install Something that relates to the npm-compatible client and removed needs triage labels Mar 11, 2025
@RiskyMH
Copy link
Member

RiskyMH commented Mar 11, 2025

Interesting, svelte-kit isn't in your package.json so npm must be executing it through npx or maybe global? In either case still a bug in Bun with compatibility.

Edit, the binary is set in @sveltejs/kit so it must not be running it correctly.

@fel1x-developer
Copy link
Contributor Author

Interesting, svelte-kit isn't in your package.json so npm must be executing it through npx or maybe global? In either case still a bug in Bun with compatibility.

prepare (or svelte-kit) works fine when running bun update. I think this is bun publish's own problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

2 participants