Repository navigation
Autodetect Bun runtime if engines.bun is set. - #16685
Conversation
🦋 Changeset detectedLatest commit: f18cbb1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🧪 Unit Test StrategyComparing: Strategy: Code changed outside of a package - running all unit tests Affected packages - 47 (100%)
Results
This comment is automatically generated based on the affected testing strategy |
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-io8vgr6zo.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-io8vgr6zo.vercel.sh/tarballs/vercel.tgz"
}
}
}Python Runtime WheelA Python Workers WheelA This comment is automatically generated |
85ba36a to
d8dfb72
Compare
d8dfb72 to
67dcb56
Compare
67dcb56 to
71ed357
Compare
71ed357 to
f18cbb1
Compare
This will allow bun to be automatically selected as the runtime without needing to set `bunVersion` in `vercel.json`. Reworked `getNodeVersion` to pick `node` or `bun` based on the following priority: - `engines.node`/`engines.bun` - if both are set, use `bun` if `config.bunVersion` is set, otherwise `node` - `config.bunVersion` - default to `node`
This will allow bun to be automatically selected as the runtime without needing to set
bunVersioninvercel.json.Reworked
getNodeVersionto picknodeorbunbased on the following priority:engines.node/engines.bunbunifconfig.bunVersionis set, otherwisenodeconfig.bunVersionnodeAlso removed the
fallbackVersionparameter since it was never directly passed in.