Skip to content

Commit ef10b35

Browse files
committed
chore: update project configuration and coverage report directory paths
- Added build, lint, and test targets to project.json for improved build process - Changed coverage reports directory in vite.config.ts to a centralized location
1 parent 2086138 commit ef10b35

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

pkgs/client/project.json

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@
44
"sourceRoot": "pkgs/client/src",
55
"projectType": "library",
66
"tags": [],
7-
"// targets": "to see all targets run: nx show project client --web",
8-
"targets": {}
9-
}
7+
"targets": {
8+
"build": {
9+
"executor": "@nx/js:tsc",
10+
"options": {
11+
"outputPath": "pkgs/client/dist",
12+
"main": "pkgs/client/src/index.ts",
13+
"tsConfig": "pkgs/client/tsconfig.lib.json",
14+
"assets": ["pkgs/client/*.md"],
15+
"rootDir": "pkgs/client/src"
16+
}
17+
},
18+
"lint": {
19+
"executor": "@nx/eslint:lint",
20+
"inputs": ["default"]
21+
},
22+
"test": {
23+
"executor": "@nx/vite:test",
24+
"inputs": ["default"],
25+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
26+
"options": {
27+
"passWithNoTests": true,
28+
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
29+
}
30+
}
31+
}
32+
}

pkgs/client/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const config = {
1717
],
1818
reporters: ['default'],
1919
coverage: {
20-
reportsDirectory: './test-output/vitest/coverage',
20+
reportsDirectory: '../../coverage/pkgs/client',
2121
provider: 'v8',
2222
},
2323
},

0 commit comments

Comments
 (0)