Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): revert to peerDependency, refer to #73 #78

Merged
merged 3 commits into from
May 2, 2023
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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ A Type Provider for [Typebox](https://github.com/sinclairzx81/typebox)
## Installation

```sh
npm i @sinclair/typebox # Required as peer dependency
npm i @fastify/type-provider-typebox
```

Expand Down Expand Up @@ -36,7 +37,13 @@ fastify.withTypeProvider<TypeBoxTypeProvider>()

```ts
import Fastify from 'fastify'
import { Type, TypeBoxTypeProvider } from '@fastify/type-provider-typebox'
import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox'

// This package re-export Typebox package
// but you can also use any builders imported
// directly from @sinclair/typebox
import { Type } from '@sinclair/typebox'


const fastify = Fastify().withTypeProvider<TypeBoxTypeProvider>()

Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"peerDependencies": {
"fastify": "^4.0.0"
},
"dependencies": {
"@sinclair/typebox": "^0.28.5"
"@sinclair/typebox": "^0.28.0"
},
"scripts": {
"build": "rimraf ./dist && mkdir dist && tsc --outDir dist",
Expand Down Expand Up @@ -41,8 +38,8 @@
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-promise": "^6.0.0",
"fastify": "^4.2.0",
"fastify-plugin": "^4.2.0",
"fastify": "^4.17.0",
"fastify-plugin": "^4.5.0",
"fastify-tsconfig": "^1.0.1",
"rimraf": "^5.0.0",
"tap": "^16.3.0",
Expand Down