mirror of
https://github.com/different-ai/openwork
synced 2026-04-26 01:25:10 +02:00
refactor: repo folder structure (#1038)
* refactor(repo): move OpenWork apps into apps and ee layout Rebase the monorepo layout migration onto the latest dev changes so the moved app, desktop, share, and cloud surfaces keep working from their new paths. Carry the latest deeplink, token persistence, build, Vercel, and docs updates forward to avoid stale references and broken deploy tooling. * chore(repo): drop generated desktop artifacts Ignore the moved Tauri target and sidecar paths so local cargo checks do not pollute the branch. Remove the accidentally committed outputs from the repo while keeping the layout migration intact. * fix(release): drop built server cli artifact Stop tracking the locally built apps/server/cli binary so generated server outputs do not leak into commits. Also update the release workflow to check the published scoped package name for @openwork/server before deciding whether npm publish is needed. * fix(workspace): add stable CLI bin wrappers Point the server and router package bins at committed wrapper scripts so workspace installs can create shims before dist outputs exist. Keep the wrappers compatible with built binaries and source checkouts to avoid Vercel install warnings without changing runtime behavior.
This commit is contained in:
@@ -66,8 +66,8 @@ services:
|
||||
# --- Use source entrypoints for the dev stack ---
|
||||
# The orchestrator can spawn .ts files via Bun directly, which avoids bind-mount
|
||||
# issues from bun --compile inside Docker on macOS.
|
||||
export OPENWORK_SERVER_BIN="/app/packages/server/src/cli.ts"
|
||||
export OPENCODE_ROUTER_BIN="/app/packages/opencode-router/src/cli.ts"
|
||||
export OPENWORK_SERVER_BIN="/app/apps/server/src/cli.ts"
|
||||
export OPENCODE_ROUTER_BIN="/app/apps/opencode-router/src/cli.ts"
|
||||
|
||||
# --- Resolve tokens ---
|
||||
if [ -z "$$OPENWORK_TOKEN" ]; then
|
||||
@@ -169,7 +169,7 @@ services:
|
||||
export HOST="0.0.0.0"
|
||||
export PORT="5173"
|
||||
|
||||
exec pnpm --filter @different-ai/openwork-ui exec vite \
|
||||
exec pnpm --filter @openwork/app exec vite \
|
||||
--host 0.0.0.0 \
|
||||
--port 5173 \
|
||||
--strictPort
|
||||
@@ -196,7 +196,7 @@ services:
|
||||
mkdir -p /app/tmp/share-service-blobs
|
||||
|
||||
echo "[share] Building Next app..."
|
||||
pnpm --dir services/openwork-share build
|
||||
pnpm --dir apps/share build
|
||||
|
||||
echo ""
|
||||
echo "============================================"
|
||||
@@ -205,7 +205,7 @@ services:
|
||||
echo "============================================"
|
||||
echo ""
|
||||
|
||||
exec pnpm --dir services/openwork-share exec next start --hostname 0.0.0.0 --port 3000
|
||||
exec pnpm --dir apps/share exec next start --hostname 0.0.0.0 --port 3000
|
||||
ports:
|
||||
- "${SHARE_PORT:-3006}:3000"
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user