Skip to content

Commit 469936c

Browse files
khaliqgantclaude
andcommitted
Set up npm workspaces for SDK and CLI packages
Configures root package.json with workspaces pointing to sdk/relayfile-sdk and sdk/relayfile. Makes CLI postinstall non-fatal so installs work before a release binary exists. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 795fae1 commit 469936c

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

package-lock.json

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

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"private": true,
33
"description": "relayfile — real-time filesystem for humans and agents",
4+
"workspaces": [
5+
"sdk/relayfile-sdk",
6+
"sdk/relayfile"
7+
],
48
"scripts": {
5-
"workflow": "agent-relay run"
9+
"workflow": "agent-relay run",
10+
"build": "npm run build --workspace=sdk/relayfile-sdk",
11+
"typecheck": "npm run typecheck --workspace=sdk/relayfile-sdk"
612
},
713
"dependencies": {
814
"@agent-relay/sdk": "latest"

sdk/relayfile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"relayfile": "bin/relayfile"
77
},
88
"scripts": {
9-
"postinstall": "node scripts/install.js"
9+
"postinstall": "node scripts/install.js || true"
1010
},
1111
"publishConfig": {
1212
"access": "public",

0 commit comments

Comments
 (0)