chore: use the text bun lockfile so turbo can resolve the workspace
This commit is contained in:
@@ -15,6 +15,9 @@ No CI, no database migrations and no product features yet.
|
|||||||
## Conventions
|
## Conventions
|
||||||
|
|
||||||
- **Package manager: Bun** — `bun install`, `bun run <script>`. Do not introduce npm/pnpm/yarn lockfiles.
|
- **Package manager: Bun** — `bun install`, `bun run <script>`. Do not introduce npm/pnpm/yarn lockfiles.
|
||||||
|
- The committed lockfile is the text one (`bun.lock`), enabled by the repo-level `bunfig.toml`
|
||||||
|
(`saveTextLockfile = true`). Turborepo reads it to resolve the workspace graph, so keep it in sync and never
|
||||||
|
hand-edit it.
|
||||||
- Bun is configured with `minimumReleaseAge` (see `~/.bunfig.toml`), so brand new releases are rejected during
|
- Bun is configured with `minimumReleaseAge` (see `~/.bunfig.toml`), so brand new releases are rejected during
|
||||||
install. If a dependency fails to resolve, pin the newest version that is at least a few days old instead of
|
install. If a dependency fails to resolve, pin the newest version that is at least a few days old instead of
|
||||||
reaching for the very latest.
|
reaching for the very latest.
|
||||||
|
|||||||
5
bunfig.toml
Normal file
5
bunfig.toml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Repo-level override of the global ~/.bunfig.toml: Turborepo reads the text
|
||||||
|
# lockfile (`bun.lock`) to resolve the workspace graph, and text lockfiles make
|
||||||
|
# for reviewable diffs. Everything else stays at Bun's defaults.
|
||||||
|
[install]
|
||||||
|
saveTextLockfile = true
|
||||||
Reference in New Issue
Block a user