packages/api/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@valkyr/api",
  "version": "0.0.0",
  "description": "Simple toolings for developing JSON-RPC 2.0 compliant APIs.",
  "repository": "https://github.com/cmdo/valkyr.git",
  "bugs": "https://github.com/cmdo/valkyr/issues",
  "author": "Christoffer Rødvik <dev@kodemon.net>",
  "license": "MIT",
  "keywords": [
    "server",
    "http"
  ],
  "main": "./dist/cjs/index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/types/index.d.ts",
  "files": [
    "dist"
  ],
  "scripts": {
    "build": "npm run clean && npm run build:esm && npm run build:cjs && node ../../scripts/esm.js api",
    "build:esm": "tsc --project ./tsconfig.json",
    "build:cjs": "tsc --project ./tsconfig.cjs.json",
    "client": "npx tsx ./src/Sample.ts",
    "flush": "npm run clean && rm -rf ./node_modules",
    "clean": "rm -rf ./dist",
    "ncu": "ncu -u",
    "lint": "eslint ."
  },
  "dependencies": {
    "@valkyr/jsonrpc": "workspace:*",
    "zod": "3.22.4"
  },
  "devDependencies": {
    "@types/ws": "^8.5.5",
    "tsup": "^7.1.0"
  },
  "peerDependencies": {
    "fastify": "^4.18.0",
    "ws": "^8.13.0"
  },
  "eslintConfig": {
    "extends": [
      "@valkyr"
    ],
    "parserOptions": {
      "project": "./tsconfig.json"
    }
  },
  "lint-staged": {
    "*": [
      "prettier --write --ignore-unknown"
    ],
    "*.{ts,tsx}": [
      "eslint --fix"
    ]
  }
}