Skip to content

Commit 3e08ffc

Browse files
committed
fix: integrate evals into nx build system with dist output
1 parent a5f5993 commit 3e08ffc

File tree

4 files changed

+49
-8
lines changed

4 files changed

+49
-8
lines changed

evals/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"test:e2e-cat-app": "bun run e2e-cat-app-script.ts",
1111
"typecheck": "tsc --noEmit",
1212
"build": "tsc",
13-
"gen-git-evals": "bun run git-evals/gen-evals.ts",
14-
"run-git-evals": "bun run git-evals/run-git-evals.ts",
15-
"run-eval-set": "bun run run-eval-set.ts",
16-
"setup-codebuff-repo": "bun run setup-codebuff-repo.ts"
13+
"gen-git-evals": "bun run dist/git-evals/gen-evals.js",
14+
"run-git-evals": "bun run dist/git-evals/run-git-evals.js",
15+
"run-eval-set": "bun run dist/run-eval-set.js",
16+
"setup-codebuff-repo": "bun run dist/setup-codebuff-repo.js"
1717
},
1818
"dependencies": {
1919
"@codebuff/integrations": "workspace:*",

evals/project.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "evals",
3+
"$schema": "../node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": ".",
5+
"projectType": "application",
6+
"targets": {
7+
"build": {
8+
"executor": "nx:run-commands",
9+
"options": {
10+
"command": "tsc --build",
11+
"cwd": "evals"
12+
},
13+
"outputs": ["{projectRoot}/dist"],
14+
"dependsOn": [
15+
"^build"
16+
]
17+
},
18+
"run-eval-set": {
19+
"executor": "nx:run-commands",
20+
"options": {
21+
"command": "bun run dist/run-eval-set.js",
22+
"cwd": "evals"
23+
},
24+
"dependsOn": [
25+
"build"
26+
]
27+
},
28+
"clean": {
29+
"executor": "nx:run-commands",
30+
"options": {
31+
"command": "rm -rf dist",
32+
"cwd": "evals"
33+
}
34+
}
35+
},
36+
"tags": [],
37+
"implicitDependencies": ["@codebuff/integrations"]
38+
}

evals/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"types": ["node", "bun"],
5+
"outDir": "./dist",
6+
"rootDir": ".",
57
"paths": {
68
"common/*": ["../common/src/*"],
79
"backend/*": ["../backend/src/*"],
@@ -16,5 +18,6 @@
1618
{ "path": "../npm-app" },
1719
{ "path": "../packages/integrations" }
1820
],
19-
"exclude": ["test-repos"]
21+
"exclude": ["test-repos"],
22+
"include": ["**/*.ts"]
2023
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"bump": "bun run scripts/bump-version.ts",
3636
"deploy:npm-app": "bun run bump && cd npm-app && npm publish",
3737
"test:patch": "bun test test/__src__/patch.test.ts",
38-
"build": "nx reset && nx run-many --target=build --projects=common,packages/*,backend,npm-app,web",
39-
"clean": "nx run-many --target=clean --projects=common,packages/*,backend,npm-app,web",
40-
"typecheck-only": "nx run-many --target=typecheck-only --projects=common,packages/*,backend,npm-app,web",
38+
"build": "nx reset && nx run-many --target=build --all",
39+
"clean": "nx run-many --target=clean --all",
40+
"typecheck-only": "nx run-many --target=typecheck-only --all",
4141
"typecheck": "bun run build && bun run typecheck-only"
4242
},
4343
"devDependencies": {

0 commit comments

Comments
 (0)