Skip to content

Commit 8053980

Browse files
committed
use bun and consolidate versioning
1 parent c05a7fd commit 8053980

9 files changed

Lines changed: 41 additions & 10 deletions

File tree

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.14

.github/renovate.json5

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,26 @@
1818
pinDigests: true,
1919
},
2020
],
21+
22+
// The Bun version is consolidated into `.bun-version` (read by all workflows
23+
// via setup-bun's `bun-version-file`) plus a mirrored literal in netlify.toml
24+
// (Netlify can't read a version file). These custom managers keep both bumped from oven-sh/bun releases (tagged `bun-v<semver>`).
25+
customManagers: [
26+
{
27+
customType: "regex",
28+
managerFilePatterns: ["/^\\.bun-version$/"],
29+
matchStrings: ["(?<currentValue>\\d+\\.\\d+\\.\\d+)"],
30+
depNameTemplate: "oven-sh/bun",
31+
datasourceTemplate: "github-releases",
32+
extractVersionTemplate: "^bun-v(?<version>.+)$",
33+
},
34+
{
35+
customType: "regex",
36+
managerFilePatterns: ["/(^|/)netlify\\.toml$/"],
37+
matchStrings: ["BUN_VERSION\\s*=\\s*\"(?<currentValue>[^\"]+)\""],
38+
depNameTemplate: "oven-sh/bun",
39+
datasourceTemplate: "github-releases",
40+
extractVersionTemplate: "^bun-v(?<version>.+)$",
41+
},
42+
],
2143
}

.github/workflows/build-and-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Bun
2525
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
2626
with:
27-
bun-version: "1.3.14"
27+
bun-version-file: .bun-version
2828
cache: true
2929
cache-dependency-path: bun.lock
3030
- name: Install dependencies
@@ -218,7 +218,7 @@ jobs:
218218
- name: Setup Bun
219219
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
220220
with:
221-
bun-version: "1.3.14"
221+
bun-version-file: .bun-version
222222
cache: true
223223
cache-dependency-path: ecosystem-explorer/bun.lock
224224

@@ -251,7 +251,7 @@ jobs:
251251
- name: Setup Bun
252252
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
253253
with:
254-
bun-version: "1.3.14"
254+
bun-version-file: .bun-version
255255
cache: true
256256
cache-dependency-path: ecosystem-explorer/bun.lock
257257

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: matrix.language == 'javascript-typescript'
4646
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
4747
with:
48-
bun-version: latest
48+
bun-version-file: .bun-version
4949

5050
- name: Install dependencies
5151
if: matrix.language == 'javascript-typescript'

.github/workflows/markdown-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Bun
3131
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
3232
with:
33-
bun-version: "1.3.14"
33+
bun-version-file: .bun-version
3434

3535
- name: Install dependencies
3636
run: bun install --frozen-lockfile

.github/workflows/screenshots-baseline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Bun
4646
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
4747
with:
48-
bun-version: "1.3.14"
48+
bun-version-file: .bun-version
4949

5050
- name: Install dependencies
5151
working-directory: ecosystem-explorer

.github/workflows/screenshots-capture.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup Bun
3838
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
3939
with:
40-
bun-version: "1.3.14"
40+
bun-version-file: .bun-version
4141

4242
- name: Install dependencies
4343
run: bun install --frozen-lockfile

ecosystem-explorer/scripts/generate-schemas.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const compilerOptions = {
4242
skipLibCheck: true,
4343
target: "ESNext",
4444
module: "ESNext",
45-
moduleResolution: "node",
45+
// Match the app's tsconfig. "bundler" sidesteps the legacy "node" resolution
46+
moduleResolution: "bundler",
4647
};
4748

4849
async function generateSchema(filePath, typeName, outputName) {

netlify.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ command = """
66
export VITE_FEATURE_FLAG_V1_REDESIGN=true
77
export VITE_FEATURE_FLAG_DEV_SHOWCASE=true
88
fi
9-
npm run netlify-build:preview
9+
bun run netlify-build:preview
1010
"""
1111

12+
# `.bun-version` (repo root) is the canonical Bun version — the workflows read it
13+
# via setup-bun's `bun-version-file`. Netlify cannot read a version file, so this
14+
# literal must mirror it; Renovate keeps both in sync (see .github/renovate.json5).
15+
[build.environment]
16+
BUN_VERSION = "1.3.14"
17+
BUN_FLAGS = "--frozen-lockfile"
18+
1219
[context.production]
13-
command = "npm run netlify-build:production"
20+
command = "bun run netlify-build:production"
1421

1522
[context.production.environment]
1623
VITE_FARO_URL = "https://faro-collector-prod-us-east-2.grafana.net/collect/e587d17d38a90612e9dbedd3a3146b77"

0 commit comments

Comments
 (0)