Skip to content

Commit e6ff3a3

Browse files
author
ScriptedAlchemy
committed
fix(bdd): satisfy tsconfig reference check and dashboard typecheck ordering
The multi-target uiAgent change made packages/bdd import the android, computer, harmony and ios workspace packages, so the tsconfig reference check now requires those project references. The bdd-dashboard parity typecheck also transitively reads @midscene/core's emitted declarations via packages/bdd/src/types.ts, so its build must order after @midscene/core:build and invalidate when types.ts changes.
1 parent 0ff2e80 commit e6ff3a3

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

apps/bdd-dashboard/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
"cwd": "apps/bdd-dashboard"
3030
},
3131
"cache": true,
32-
"dependsOn": ["@midscene/shared:build"],
32+
"dependsOn": ["@midscene/shared:build", "@midscene/core:build"],
3333
"inputs": [
3434
"build",
3535
"{workspaceRoot}/package.json",
36-
"{workspaceRoot}/packages/bdd/src/explore/model.ts"
36+
"{workspaceRoot}/packages/bdd/src/explore/model.ts",
37+
"{workspaceRoot}/packages/bdd/src/types.ts"
3738
],
3839
"outputs": [
3940
"{projectRoot}/dist",

packages/bdd/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,21 @@
1212
"exclude": ["node_modules", "example"],
1313
"include": ["src", "tests"],
1414
"references": [
15+
{
16+
"path": "../android"
17+
},
18+
{
19+
"path": "../computer"
20+
},
1521
{
1622
"path": "../core"
1723
},
24+
{
25+
"path": "../harmony"
26+
},
27+
{
28+
"path": "../ios"
29+
},
1830
{
1931
"path": "../shared"
2032
},

0 commit comments

Comments
 (0)