Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"fixed": [],
"linked": [
[
"devbox-sdk",
"@labring/devbox-sdk",
"devbox-shared"
]
],
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/links-checker-schedule.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ name: release
on:
push:
branches: [main, master]
paths:
- 'packages/sdk/**'
- 'packages/shared/**'
- '.changeset/**'
- 'package.json'
- 'pnpm-lock.yaml'
- '.github/workflows/release.yml'
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 2 additions & 4 deletions apps/docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ docker build --platform linux/amd64 -f apps/docs/Dockerfile -t devbox-docs:lates
docker run -p 3000:3000 devbox-docs:latest
```

Then visit http://localhost:3000

---

## 🔧 Advanced Usage
Expand Down Expand Up @@ -111,8 +109,8 @@ docker build --no-cache --platform linux/amd64 -f apps/docs/Dockerfile -t devbox

## 🎯 Why Build from Root?

This project uses npm workspaces:
- `package-lock.json` is only in the root directory
This project uses pnpm workspaces:
- `pnpm-lock.yaml` and `pnpm-workspace.yaml` are only in the root directory
- Dependencies are hoisted to root `node_modules`
- Workspace resolution requires the full monorepo context

Expand Down
13 changes: 8 additions & 5 deletions apps/docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# Dockerfile for Next.js app in npm workspaces monorepo
# Dockerfile for Next.js app in pnpm workspaces monorepo
# MUST be built from the monorepo root directory:
# docker build --platform linux/amd64 -f apps/docs/Dockerfile -t devbox-docs:latest .

FROM node:22-alpine AS base

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate

# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Copy root package files for workspace resolution
COPY package.json package-lock.json ./
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY apps/docs/package.json ./apps/docs/

# Install all dependencies (respects workspaces)
RUN npm ci
RUN pnpm install --frozen-lockfile

# Rebuild the source code only when needed
FROM base AS builder
Expand All @@ -25,12 +28,12 @@ COPY --from=deps /app/apps/docs/node_modules ./apps/docs/node_modules

# Copy only the docs app source
COPY apps/docs ./apps/docs
COPY package.json package-lock.json ./
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./

# Build the docs app
ENV NEXT_TELEMETRY_DISABLED=1
WORKDIR /app/apps/docs
RUN npm run build
RUN pnpm run build

# Production image
FROM base AS runner
Expand Down
3 changes: 0 additions & 3 deletions packages/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,6 @@ Represents a single sandbox instance with methods for code execution, file opera
- `moveFile(options: MoveFileOptions): Promise<MoveFileResponse>`
- `renameFile(options: RenameFileOptions): Promise<RenameFileResponse>`

**File Watching:**
- `watchFiles(path: string, callback: (event: FileChangeEvent) => void): Promise<FileWatchWebSocket>`

**Git Operations:**
- `git.clone(options: GitCloneOptions): Promise<void>`
- `git.pull(options: GitPullOptions): Promise<void>`
Expand Down
Loading
Loading