bun.lockb prevents auto imports
yus-ham opened this issue · comments
Yusup Hambali commented
Ashcon Partovi commented
The intention is that if there is a bun.lockb
/ package.json
, Bun will use that instead of auto-imports.
Yusup Hambali commented
Version resolution
To determine which version to install, Bun follows the following algorithm:
- Check for a bun.lockb file in the project root. If it exists, use the version specified in the lockfile.
- Otherwise, scan up the tree for a package.json that includes "foo" as a dependency. If found, use the specified semver version or version range.
- Otherwise, use latest.
Maybe I misunderstood the docs explanation that auto import can coexist with bun.lockb or package.json and optionally uses them
Brian Dombrowski commented
I too am confused -- would think auto-import shoudl work if those files exist and if they do, use the versions in those files