belgattitude/httpx

View on GitHub
packages/json-api/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@httpx/json-api",
  "description": "Basic typescript helpers to work with json-api",
  "version": "0.5.24",
  "license": "MIT",
  "author": {
    "name": "Vanvelthem Sébastien",
    "url": "https://github.com/belgattitude"
  },
  "homepage": "https://github.com/belgattitude/httpx/tree/main/packages/json-api#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/belgattitude/httpx.git",
    "directory": "packages/json-api"
  },
  "keywords": [
    "json-api",
    "helpers"
  ],
  "sideEffects": false,
  "type": "module",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.cts",
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./package.json": "./package.json"
  },
  "files": [
    "dist"
  ],
  "scripts": {
    "?build-release": "When https://github.com/atlassian/changesets/issues/432 has a solution we can remove this trick",
    "build": "yarn clean && yarn tsup",
    "build-release": "yarn build && rimraf ./_release && yarn pack && mkdir ./_release && tar zxvf ./package.tgz --directory ./_release && rm ./package.tgz",
    "bench": "vitest bench --run",
    "bench-watch": "vitest bench",
    "docgen": "run-s docgen-typedoc",
    "docgen-typedoc": "rimraf ./docs/api && typedoc --plugin typedoc-plugin-markdown --out ./docs/api",
    "check-dist": "run-s check-dist-esm check-dist-cjs",
    "check-dist-cjs": "es-check --not './dist/*.map.js' -v es2022 './dist/**/*.cjs'",
    "check-dist-esm": "es-check --not './dist/*.map.js' -v es2022 --module './dist/**/*.mjs'",
    "check-pub": "attw --pack && publint",
    "check-size": "size-limit",
    "clean": "rimraf ./dist ./build ./coverage ./_release",
    "dev": "tsup --watch",
    "fix-staged": "lint-staged --allow-empty",
    "lint": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --cache --cache-location ../../.cache/eslint/json-api.eslintcache",
    "test": "vitest run",
    "test-unit": "vitest run",
    "test-unit-coverage": "vitest run --coverage",
    "test-unit-edge": "vitest run --environment edge-runtime",
    "test-unit-browser": "vitest run --browser",
    "test-unit-cloudflare": "vitest run --config ./vitest.cloudflare.config.ts",
    "test-unit-watch": "vitest --ui  --api 4313",
    "typecheck": "tsc --project tsconfig.json --noEmit",
    "typecheck-build": "tsc --project tsconfig.build.json --noEmit",
    "ci-coverage-upload": "../../.github/scripts/download/codecov -F httpx-json-api-unit --dir ./coverage"
  },
  "dependencies": {
    "@httpx/exception": "workspace:^"
  },
  "devDependencies": {
    "@arethetypeswrong/cli": "0.16.4",
    "@belgattitude/eslint-config-bases": "6.3.0",
    "@httpx/devtools-vitest": "workspace:^",
    "@size-limit/file": "11.1.6",
    "@size-limit/webpack": "11.1.6",
    "browserslist": "4.24.2",
    "browserslist-to-esbuild": "2.1.1",
    "cross-env": "7.0.3",
    "es-check": "7.2.1",
    "esbuild": "0.24.0",
    "eslint": "8.57.1",
    "npm-run-all2": "7.0.1",
    "publint": "0.2.12",
    "rimraf": "6.0.1",
    "rollup": "4.24.3",
    "size-limit": "11.1.6",
    "tsup": "8.3.5",
    "typedoc": "0.26.10",
    "typedoc-plugin-markdown": "4.2.9",
    "typescript": "5.6.3",
    "vitest": "2.1.4",
    "webpack": "5.96.0"
  },
  "engines": {
    "node": ">=18"
  },
  "publishConfig": {
    "directory": "_release/package"
  }
}