@foodsy-app/fastify-typebox
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "@foodsy-app/fastify-typebox", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Plugin for Fastify to prevent having to write duplicate type definitions for schemas", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ # @foodsy-app/fastify-typebox | ||
**Important note before using this plugin!** | ||
## Important note before using this plugin! | ||
@@ -53,2 +53,12 @@ This plugin requires [patch-package](https://www.npmjs.com/package/patch-package) to comment existing type declarations for request methods in `node_modules/fastify/types/instance.d.ts` since TypeScript does not allow to overwrite declarations. | ||
## Tip | ||
Add the patch file to your source control and add the script below to the scripts section in your `package.json` so that people who install your project do not have to manually apply the patch: | ||
```json | ||
"scripts": { | ||
"postinstall": "npx patch-package --patch-dir ." | ||
} | ||
``` | ||
## Install | ||
@@ -55,0 +65,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23687
118