Skip to content

Commit b4fbb00

Browse files
remove build from @decocms/bindings, fix ts check oom (#1908)
* simplify bindings collections package * fmt * Enhance collection bindings by introducing output schemas for list, get, insert, update, and delete operations, improving code organization and reusability. * normalize zod versions * Enhance collection bindings with detailed schemas and type helpers for CRUD operations, improving documentation and TypeScript support. * update zod imports * update zod imports * fmt * Update publish workflow and package version; remove build step and tsup configuration. The package version is bumped to 1.0.0, and the npm publish command is simplified by setting the working directory directly.
1 parent f85ab78 commit b4fbb00

165 files changed

Lines changed: 180 additions & 231 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursor/rules/api-development.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This guide provides a step-by-step process for adding new APIs to the decocms sy
1919
### 1.1 Basic File Structure
2020

2121
```typescript
22-
import { z } from "zod/v3";
22+
import { z } from "zod";
2323
import { UserInputError } from "../../errors.ts";
2424
import type { QueryResult } from "../../storage/index.ts";
2525
import {

.cursor/rules/react-ts.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ import { Card, CardContent, CardHeader } from "@deco/ui/components/card.tsx";
189189
// ✅ Good - Use react-hook-form with proper validation
190190
import { useForm } from "react-hook-form";
191191
import { zodResolver } from "@hookform/resolvers/zod";
192-
import { z } from "zod/v3";
192+
import { z } from "zod";
193193

194194
const schema = z.object({
195195
email: z.string().email("Please enter a valid email address"),

.github/workflows/publish-bindings.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,15 @@ jobs:
2424
- name: Install dependencies
2525
run: bun install
2626

27-
- name: Build package
28-
run: cd packages/bindings && bun run build
29-
3027
- name: Setup Node.js
3128
uses: actions/setup-node@v4
3229
with:
3330
node-version: "24"
3431
registry-url: "https://registry.npmjs.org"
3532

3633
- name: Publish to npm
37-
run: cd packages/bindings && npm publish --provenance --access public
34+
run: npm publish --provenance --access public
35+
working-directory: packages/bindings
3836
env:
3937
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4038

.github/workflows/test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ jobs:
2222
- name: Install dependencies
2323
run: bun install
2424

25-
- name: Build deps
26-
run: bun run build
27-
working-directory: packages/bindings
28-
2925
- name: Run format
3026
run: bun run fmt:check
3127

README.md

Lines changed: 1 addition & 1 deletion

apps/api/src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ import { HTTPException } from "hono/http-exception";
7474
import { endTime, startTime } from "hono/timing";
7575
import type { ContentfulStatusCode } from "hono/utils/http-status";
7676
import { studio } from "outerbase-browsable-do-enforced";
77-
import { z } from "zod/v3";
77+
import { z } from "zod";
7878
import { convertJsonSchemaToZod } from "zod-from-json-schema";
7979
import { ROUTES as loginRoutes } from "./auth/index.ts";
8080
import { handleDecopilotStream } from "./decopilot-stream.ts";

apps/api/src/decopilot-stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
tool,
2525
} from "ai";
2626
import type { Context } from "hono";
27-
import { z } from "zod/v3";
27+
import { z } from "zod";
2828
import { honoCtxToAppCtx } from "./api.ts";
2929
import type { AppEnv } from "./utils/context.ts";
3030
import { State } from "./utils/context.ts";

apps/mesh/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"tailwind-merge": "^3.3.1",
6969
"tailwindcss": "^4.1.17",
7070
"use-mcp": "^0.0.21",
71-
"zod": "^4.1.13"
71+
"zod": "^3.25.76"
7272
},
7373
"devDependencies": {
7474
"@better-auth/cli": "1.4.1",

apps/mesh/src/api/routes/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
tool,
1212
} from "ai";
1313
import { Hono } from "hono";
14-
import { z } from "zod/v3";
14+
import { z } from "zod";
1515
import type { MeshContext } from "../../core/mesh-context";
1616
import type { ConnectionEntity } from "../../tools/connection/schema";
1717
import { ConnectionTools } from "../../tools";

apps/mesh/src/api/utils/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
type CallToolRequest,
5454
type CallToolResult,
5555
} from "@modelcontextprotocol/sdk/types.js";
56-
import z from "zod/v3";
56+
import z from "zod";
5757
import { HttpServerTransport } from "../http-server-transport";
5858
import { compose } from "./compose";
5959

0 commit comments

Comments
 (0)