Skip to content

Commit 0315a02

Browse files
committed
chore(gates): declare optional replay package in the project graph
1 parent f01fbea commit 0315a02

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎examples/sdk/tsconfig.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
{ "path": "../../packages/proxy" },
7272
{ "path": "../../packages/react-native" },
7373
{ "path": "../../packages/remote" },
74+
{ "path": "../../packages/replay" },
7475
{ "path": "../../packages/replay-port" },
7576
{ "path": "../../packages/replay-test" },
7677
{ "path": "../../packages/selectors" },

‎scripts/layering/project-references.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test('the compiled-set predicate is licensed by the tsconfig include/exclude sha
115115
}
116116
});
117117

118-
test('root workspace dependencies cover every non-Maestro package and exclude the optional engine', () => {
118+
test('root workspace dependencies cover every core package and exclude optional engines', () => {
119119
const manifest = JSON.parse(fs.readFileSync(path.join(repoRoot, 'package.json'), 'utf8')) as {
120120
dependencies?: Record<string, string>;
121121
devDependencies?: Record<string, string>;
@@ -128,7 +128,7 @@ test('root workspace dependencies cover every non-Maestro package and exclude th
128128
.map(([name]) => name)
129129
.sort();
130130
const expected = readWorkspacePackages(repoRoot)
131-
.filter((pkg) => pkg.name !== '@agent-device/maestro')
131+
.filter((pkg) => !['@agent-device/maestro', '@agent-device/replay'].includes(pkg.name))
132132
.map((pkg) => pkg.name)
133133
.sort();
134134
assert.deepEqual(
@@ -139,7 +139,7 @@ test('root workspace dependencies cover every non-Maestro package and exclude th
139139
'specifiers through these declarations)',
140140
);
141141
assert.ok(
142-
!declared.includes('@agent-device/maestro'),
142+
!declared.includes('@agent-device/maestro') && !declared.includes('@agent-device/replay'),
143143
'The optional engine must be installed through the plugin store. R11 rejects undeclared imports from core.',
144144
);
145145
});

0 commit comments

Comments
 (0)