Skip to content

Commit e50ecc1

Browse files
committed
chore(ui): add workspaces to HAPPIER_INSTALL_SCOPE
Update apps/ui/eas.json to include transfers and connection-supervisor in HAPPIER_INSTALL_SCOPE. Add assertions in the development profile test to verify the install scope contains ui, protocol, agents, transfers, and connection-supervisor to prevent regressions in EAS development builds.
1 parent 5f4b900 commit e50ecc1

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

apps/ui/eas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"base": {
88
"node": "22.14.0",
99
"env": {
10-
"HAPPIER_INSTALL_SCOPE": "ui,protocol,agents",
10+
"HAPPIER_INSTALL_SCOPE": "ui,protocol,agents,transfers,connection-supervisor",
1111
"EXPO_PUBLIC_HAPPY_SERVER_URL": "https://api.happier.dev",
1212
"HAPPIER_UI_VENDOR_WEB_ASSETS": "0"
1313
},

scripts/release/ui_mobile_eas_development_profile.contract.test.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ test('apps/ui/eas.json defines a development profile for OTA-native debug dev-cl
1313
const build = eas?.build ?? null;
1414
assert.equal(typeof build, 'object');
1515

16+
const baseInstallScope = String(build?.base?.env?.HAPPIER_INSTALL_SCOPE ?? '');
17+
const installScopeTokens = new Set(
18+
baseInstallScope
19+
.split(',')
20+
.map((token) => token.trim())
21+
.filter(Boolean),
22+
);
23+
for (const workspace of ['ui', 'protocol', 'agents', 'transfers', 'connection-supervisor']) {
24+
assert.equal(
25+
installScopeTokens.has(workspace),
26+
true,
27+
`base HAPPIER_INSTALL_SCOPE should include ${workspace}`,
28+
);
29+
}
30+
1631
const development = build?.development ?? null;
1732
assert.equal(typeof development, 'object');
1833
assert.equal(development.extends, 'base');

0 commit comments

Comments
 (0)