Skip to content

Commit

Permalink
Merge pull request #169 from times-yasunori/feature/hono
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoya authored Dec 30, 2024
2 parents 26dd45f + 3898de2 commit 2d6e299
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"license": "MIT",
"type": "module",
"packageManager": "[email protected]",
"exports": {
"./client": "./src/client.ts"
},
"scripts": {
"generate:json": "touch ./src/awesome-yasunori.json && node ./script/generate-awesome-yasunori-json.js",
"dev": "vite --port 5183",
Expand Down
4 changes: 4 additions & 0 deletions packages/api/src/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { hc } from "hono/client";
import type { ApiRoute } from "./index";

export const client = hc<ApiRoute>("https://api.yasunori.dev");
5 changes: 1 addition & 4 deletions packages/web/app/shared/yasunori-api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import type { ApiRoute } from "@awesome-yasunori/api/src/index.js";
import { hc } from "hono/client";

export const yasunoriApiClient = hc<ApiRoute>("https://api.yasunori.dev");
export { client as yasunoriApiClient } from "@awesome-yasunori/api/client";
1 change: 0 additions & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@remix-run/cloudflare-pages": "^2.13.1",
"@remix-run/react": "^2.13.1",
"framer-motion": "^11.11.9",
"hono": "^4.6.4",
"isbot": "^5.1.17",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d6e299

Please sign in to comment.