Skip to content

Commit 441be89

Browse files
committed
Fix CI: build eslint-config dist in all standalone pipelines
The eslint-config dist/ directory is gitignored, so standalone Dagger pipelines that mount eslint-config need to explicitly build it after install. Without this, local.ts -> ./dist/index.js fails with ResolveMessage {}. Also fixes: - sjer.red: add missing zod direct dependency - better-skill-capped/fetcher: fix tsconfig types field (@types/bun) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b5af7eb commit 441be89

11 files changed

Lines changed: 21 additions & 5 deletions

File tree

.dagger/src/astro-opengraph-images.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export async function checkAstroOpengraphImages(
3737
)
3838
.withWorkdir("/workspace")
3939
.withExec(["bun", "install"])
40+
.withWorkdir("/workspace/packages/eslint-config")
41+
.withExec(["bun", "run", "build"])
4042
.withWorkdir("/workspace/packages/astro-opengraph-images");
4143

4244
// Run lint, build, test sequentially

.dagger/src/better-skill-capped.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export async function checkBetterSkillCapped(
4242
)
4343
.withWorkdir("/workspace")
4444
.withExec(["bun", "install"])
45+
.withWorkdir("/workspace/packages/eslint-config")
46+
.withExec(["bun", "run", "build"])
4547
.withWorkdir("/workspace/packages/better-skill-capped")
4648
.withExec(["bun", "run", "lint"])
4749
.sync(),

.dagger/src/birmel.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ function installWorkspaceDeps(
8787
* @returns Container ready for birmel operations
8888
*/
8989
export function getBirmelPrepared(workspaceSource: Directory): Container {
90-
return installWorkspaceDeps(workspaceSource, true).withWorkdir(
91-
"/workspace/packages/birmel",
92-
);
90+
return installWorkspaceDeps(workspaceSource, true)
91+
.withWorkdir("/workspace/packages/eslint-config")
92+
.withExec(["bun", "run", "build"])
93+
.withWorkdir("/workspace/packages/birmel");
9394
}
9495

9596
/**

.dagger/src/discord-plays-pokemon.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ function lintCommon(
5757
.withDirectory("/eslint-config", eslintConfigSource)
5858
.withWorkdir("/eslint-config")
5959
.withExec(["bun", "install"])
60+
.withExec(["bun", "run", "build"])
6061
.withWorkdir("/workspace/packages/common")
6162
.withExec(["bun", "run", "lint:check"]);
6263
}
@@ -111,6 +112,7 @@ function lintBackend(
111112
.withDirectory("/eslint-config", eslintConfigSource)
112113
.withWorkdir("/eslint-config")
113114
.withExec(["bun", "install"])
115+
.withExec(["bun", "run", "build"])
114116
.withWorkdir("/workspace/packages/backend")
115117
.withExec(["bun", "run", "lint:check"]);
116118
}
@@ -167,6 +169,7 @@ function lintFrontend(
167169
.withDirectory("/eslint-config", eslintConfigSource)
168170
.withWorkdir("/eslint-config")
169171
.withExec(["bun", "install"])
172+
.withExec(["bun", "run", "build"])
170173
.withWorkdir("/workspace/packages/frontend")
171174
.withExec(["bun", "run", "lint:check"]);
172175
}

.dagger/src/scout-for-lol-desktop.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export async function checkDesktopParallel(
203203
.withDirectory("/eslint-config", eslintConfigSource)
204204
.withWorkdir("/eslint-config")
205205
.withExec(["bun", "install"])
206+
.withExec(["bun", "run", "build"])
206207
.withWorkdir("/workspace");
207208
}
208209

.dagger/src/scout-for-lol.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export async function checkScoutForLol(source: Directory): Promise<string> {
4040
.withDirectory("/eslint-config", eslintConfigSource)
4141
.withWorkdir("/eslint-config")
4242
.withExec(["bun", "install"])
43+
.withExec(["bun", "run", "build"])
4344
.withWorkdir("/workspace");
4445

4546
// Build desktop frontend once and share

.dagger/src/sjer-red.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export async function checkSjerRed(source: Directory): Promise<string> {
5959
)
6060
.withWorkdir("/workspace")
6161
.withExec(["bun", "install"])
62+
.withWorkdir("/workspace/packages/eslint-config")
63+
.withExec(["bun", "run", "build"])
6264
.withWorkdir("/workspace/packages/sjer.red")
6365
.withExec(["bunx", "astro", "sync"])
6466
.withExec(["bun", "run", "lint"])

.dagger/src/webring.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ function getWebringContainer(source: Directory): Container {
3939
)
4040
.withWorkdir("/workspace")
4141
.withExec(["bun", "install"])
42+
.withWorkdir("/workspace/packages/eslint-config")
43+
.withExec(["bun", "run", "build"])
4244
.withWorkdir("/workspace/packages/webring");
4345
}
4446

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/better-skill-capped/fetcher/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@tsconfig/recommended/tsconfig.json"
66
],
77
"compilerOptions": {
8-
"types": ["bun-types"],
8+
"types": ["@types/bun"],
99
"moduleResolution": "Node16",
1010
"module": "Node16"
1111
}

0 commit comments

Comments
 (0)