Closed skdev-io closed 2 months ago
If it's a Bun only issue, shouldn't it be reported to Bun? The version format looks like valid semver to me.
there are about 3.5k package.json files on github using the spaceless version and https://semver.npmjs.com shows it works without. The spec mentions 2 versions must be separated by space, and the ||
is shown surrounded by space but it is a different separator.
That being said, we should make a mental note to use the spaced version next time. The current ||
is going to be removed once we release 3.0 final, which is going to be alongside the svelte5 release.
If it's a Bun only issue, shouldn't it be reported to Bun? The version format looks like valid semver to me.
yeah npm allows the use of non-spaced version and I think bun should make it support as well (and it will support it im very sure). but to be spec compliant its better to make the space.
I think this is a bug in Bun
cc @dylan-conway
Yes, this was a bug in bun. It was fixed in bun v1.1.11 with https://github.com/oven-sh/bun/pull/11387
thanks for the quick fix!!
Describe the bug
The version info for @sveltejs/vite-plugin-svelte-inspector is currently "^3.0.0-next.0||^3.0.0" but should be "^3.0.0-next.0 || ^3.0.0" for it to work properly with Bun.
Reproduction URL
https://github.com/sveltejs/vite-plugin-svelte/
Reproduction
1) Try "bun install" 2) Receive error
Logs
System Info