Skip to content

Commit dd15840

Browse files
authored
chore: remove leftover env overrides, exports, and script aliases (#436)
* chore: remove leftover env overrides, exports, and script aliases Drops ACE_WORKER, ACE_APP_DIR and VITE_ACE_HOST, which nothing sets; @ace/host's unused bin and '.', './gateway' and './keys' exports; services/channel's unused chord dependency; and the desktop's uncalled stage alias. * chore: keep bun.lock to the chord removal
1 parent bbdc04d commit dd15840

7 files changed

Lines changed: 6 additions & 17 deletions

File tree

‎apps/app/src/address.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ if (given) {
4949
/** The deployed app's chosen host, shown when it cannot be reached. */
5050
export const chosen = deployed ? stored() : undefined;
5151

52-
export const gateway: string | undefined = import.meta.env.VITE_ACE_HOST
53-
|| (deployed
54-
? chosen && `wss://${chosen}/ws`
55-
: `${location.protocol === "https:" ? "wss:" : "ws:"}//${location.host}/ws`);
52+
export const gateway: string | undefined = deployed
53+
? chosen && `wss://${chosen}/ws`
54+
: `${location.protocol === "https:" ? "wss:" : "ws:"}//${location.host}/ws`;

‎apps/app/src/env.d.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
interface ImportMetaEnv {
2-
readonly VITE_ACE_HOST?: string;
32
readonly VITE_ACE_WEB?: string;
43
}

‎apps/desktop/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"version": "0.0.46",
77
"exports": { "./protocol": "./src/protocol.ts" },
88
"scripts": {
9-
"stage": "bun scripts/stage.ts",
109
"dev": "bun scripts/build.ts dev --run",
1110
"build": "bun scripts/build.ts",
1211
"ci": "bun scripts/ci.ts",

‎apps/host/package.json‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"private": true,
44
"type": "module",
55
"license": "MIT",
6-
"bin": {
7-
"ace": "./src/cli.ts"
8-
},
96
"scripts": {
107
"types": "tsgo --noEmit"
118
},
@@ -21,13 +18,10 @@
2118
"@types/bun": "catalog:bun"
2219
},
2320
"exports": {
24-
".": "./src/cli.ts",
2521
"./protocol": "./src/protocol.ts",
2622
"./gateway-client": "./src/gateway-client.ts",
27-
"./gateway": "./src/gateway.ts",
2823
"./config": "./src/config.ts",
2924
"./auth": "./src/auth.ts",
30-
"./health": "./src/health.ts",
31-
"./keys": "./src/keys.ts"
25+
"./health": "./src/health.ts"
3226
}
3327
}

‎apps/host/src/config.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const config = {
1717
/** HTTPS for browsers on the tailnet; defaults to port + 1000. */
1818
webPort: process.env.ACE_WEB_PORT ? Number(process.env.ACE_WEB_PORT) : undefined,
1919
peerPort: process.env.ACE_PEER_PORT ? Number(process.env.ACE_PEER_PORT) : undefined,
20-
app: process.env.ACE_APP_DIR || fileURLToPath(new URL("../../app/dist", import.meta.url)),
20+
app: fileURLToPath(new URL("../../app/dist", import.meta.url)),
2121
appUrl: process.env.ACE_APP_URL,
2222
helper: false,
2323
/** Ace Helper's app version, reported by /health so a conflict can name the build on the port. */
@@ -27,7 +27,7 @@ export const config = {
2727
worker: [
2828
process.execPath,
2929
"--no-env-file",
30-
process.env.ACE_WORKER || fileURLToPath(new URL("./worker.ts", import.meta.url)),
30+
fileURLToPath(new URL("./worker.ts", import.meta.url)),
3131
] as [string, ...string[]],
3232
};
3333

‎bun.lock‎

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎services/channel/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"dependencies": {
1212
"@ace/channel": "workspace:*",
13-
"@earendil-works/chord": "catalog:pi",
1413
"@earendil-works/pi-ai": "catalog:pi",
1514
"@earendil-works/pi-durable": "catalog:pi"
1615
},

0 commit comments

Comments
 (0)