Skip to content

Commit 47e1e13

Browse files
Add @standard-schema/spec as peerDependency
1 parent 88feff2 commit 47e1e13

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Or you can use it with Deno:
7474
import { makeService } from "https://deno.land/x/make_service/mod.ts";
7575
```
7676

77+
If you want to use it with a schema parser - such as [zod](https://zod.dev/), [arktype](https://arktype.dev/), [valibot](https://valibot.dev/), or other [standard-schema](https://standardschema.dev) libraries -, you need to install it as a peer dependency:
78+
79+
```sh
80+
npm install make-service @standard-schema/spec
81+
```
82+
7783
# API
7884

7985
This library exports the `makeService` function and some primitives used to build it. You can use the primitives as you wish but the `makeService` will have all the features combined.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
"vitest": "latest",
4444
"zod": "3.25.67"
4545
},
46+
"peerDependencies": {
47+
"@standard-schema/spec": "^1.0.0"
48+
},
4649
"files": [
4750
"README.md",
4851
"./dist/*"

0 commit comments

Comments
 (0)