fastify-typebox-module
Version:
A plugin for Fastify that allows you to use TypeBox module schemas and register them as normal ajv schemas.
70 lines (69 loc) • 1.96 kB
JSON
{
"name": "fastify-typebox-module",
"type": "module",
"version": "0.0.2",
"description": "A plugin for Fastify that allows you to use TypeBox module schemas and register them as normal ajv schemas.",
"author": {
"name": "Martin Acosta",
"email": "tinchoz49@gmail.com"
},
"license": "MIT",
"homepage": "https://github.com/tinchoz49/fastify-typebox-module#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tinchoz49/fastify-typebox-module.git"
},
"bugs": {
"url": "https://github.com/tinchoz49/fastify-typebox-module/issues"
},
"keywords": [
"fastify-typebox-module",
"typebox",
"fastify",
"ajv",
"json-schemas",
"types"
],
"browser": "./dist/cjs/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "./dist/cjs/index.js",
"files": [
"bin",
"dist",
"src"
],
"scripts": {
"build:clean": "rimraf ./dist",
"build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --module CommonJS --moduleResolution Node10",
"build:esm": "tsc -p tsconfig.build.json --outDir dist/esm",
"build": "npm run build:clean && npm run build:cjs && npm run build:esm",
"test": "tsx --test",
"test:types": "tsc --noEmit",
"posttest": "npm run lint",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"prepublishOnly": "npm run build && npm run test && npm run test:types"
},
"dependencies": {
"@fastify/jwt": "^9.1.0",
"fastify-plugin": "^5.0.1"
},
"devDependencies": {
"@biomejs/biome": "^2.0.6",
"@fastify/type-provider-typebox": "^5.1.0",
"@sinclair/typebox": "^0.34.15",
"@types/node": "^22.7.4",
"biome-standard-mate": "^1.0.0",
"expect-type": "^1.1.0",
"fastify": "^5.2.1",
"rimraf": "^6.0.1",
"tsx": "^4.19.2",
"typescript": "^5.6.2"
}
}