Skip to content

Commit e9841b6

Browse files
committed
fix publish
1 parent 27e5308 commit e9841b6

8 files changed

Lines changed: 25 additions & 19 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/
55
.turbo/
66
*.log
77
.npm-cache/
8+
*.tsbuildinfo

package-lock.json

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

packages/sdk/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@relaycron/sdk",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "TypeScript SDK for AgentCron — schedule work for AI agents",
55
"type": "module",
66
"main": "dist/index.js",
@@ -15,9 +15,9 @@
1515
"dist"
1616
],
1717
"scripts": {
18-
"build": "tsc",
18+
"build": "tsc -b",
1919
"dev": "tsc --watch",
20-
"prepublishOnly": "npm run build"
20+
"prepack": "npm run build"
2121
},
2222
"publishConfig": {
2323
"access": "public"
@@ -32,7 +32,7 @@
3232
"node": ">=18"
3333
},
3434
"dependencies": {
35-
"@relaycron/types": "*"
35+
"@relaycron/types": "^0.1.1"
3636
},
3737
"devDependencies": {
3838
"typescript": "^5.7.0"

packages/server/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@relaycron/server",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": false,
55
"type": "module",
66
"main": "dist/index.js",
@@ -10,6 +10,9 @@
1010
"./scheduler": "./dist/scheduler.js",
1111
"./db": "./dist/db/index.js"
1212
},
13+
"files": [
14+
"dist"
15+
],
1316
"repository": {
1417
"type": "git",
1518
"url": "https://github.com/AgentWorkforce/relaycron",
@@ -19,10 +22,14 @@
1922
"scripts": {
2023
"start": "tsx src/server.ts",
2124
"dev": "tsx watch src/server.ts",
22-
"build": "tsc"
25+
"build": "tsc -b",
26+
"prepack": "npm run build"
27+
},
28+
"publishConfig": {
29+
"access": "public"
2330
},
2431
"dependencies": {
25-
"@relaycron/types": "*",
32+
"@relaycron/types": "^0.1.1",
2633
"@hono/node-server": "^1.13.0",
2734
"better-sqlite3": "^11.0.0",
2835
"cron-parser": "^5.0.0",

packages/server/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createApp(db: Database, scheduler: Scheduler): Hono {
1414

1515
// Health check
1616
app.get("/health", (c) =>
17-
c.json({ ok: true, data: { status: "healthy", version: "0.1.0" } })
17+
c.json({ ok: true, data: { status: "healthy", version: "0.1.1" } })
1818
);
1919

2020
// Routes

packages/server/src/routes/ws.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import { Hono } from "hono";
22
import { eq } from "drizzle-orm";
33
import { apiKeys } from "../db/schema.js";
44
import { hashKey } from "../middleware/auth.js";
5-
import type { Env } from "../types.js";
65
import type { WsMessage } from "@relaycron/types";
76

8-
const wsRouter = new Hono<{ Bindings: Env }>();
7+
const wsRouter = new Hono();
98

109
wsRouter.get("/", async (c) => {
1110
const upgradeHeader = c.req.header("Upgrade");

packages/server/tsconfig.tsbuildinfo

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/types/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@relaycron/types",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Shared Zod schemas and TypeScript types for AgentCron",
55
"type": "module",
66
"main": "dist/index.js",
@@ -15,9 +15,9 @@
1515
"dist"
1616
],
1717
"scripts": {
18-
"build": "tsc",
18+
"build": "tsc -b",
1919
"dev": "tsc --watch",
20-
"prepublishOnly": "npm run build"
20+
"prepack": "npm run build"
2121
},
2222
"publishConfig": {
2323
"access": "public"

0 commit comments

Comments
 (0)