bbc/cloudflare-queue-consumer

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@bbc/cloudflare-queue-consumer",
  "version": "0.0.5",
  "description": "Build Cloudflare Queue applications without the boilerplate",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/bbc/cloudflare-queue-consumer.git"
  },
  "bugs": {
    "url": "https://github.com/bbc/cloudflare-queue-consumer/issues"
  },
  "homepage": "https://bbc.github.io/cloudflare-queue-consumer/",
  "keywords": [
    "cloudflare",
    "queue",
    "consumer"
  ],
  "license": "Apache-2.0",
  "publishConfig": {
    "provenance": false
  },
  "type": "module",
  "exports": {
    ".": {
      "types": "./dist/types/index.d.ts",
      "require": "./dist/cjs/index.js",
      "import": "./dist/esm/index.js",
      "default": "./dist/esm/index.js"
    }
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "scripts": {
    "clean": "rm -fr dist/*",
    "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json",
    "build": "pnpm run clean && pnpm run compile",
    "watch": "tsc --watch",
    "prepublishOnly": "pnpm run build",
    "lint": "eslint . --ext .ts",
    "lint:fix": "eslint . --fix",
    "format": "prettier --log-level warn --write \"**/*.{js,json,jsx,md,ts,tsx,html}\"",
    "format:check": "prettier --check \"**/*.{js,json,jsx,md,ts,tsx,html}\"",
    "test:unit": "node --import tsx --test ./test/unit/**/*.test.ts",
    "test:unit:watch": "node --import tsx --test --watch ./test/unit/*.test.ts",
    "test": "pnpm run test:unit && pnpm run lint && pnpm run format:check",
    "lcov": "node --import tsx --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=coverage/lcov.info ./test/unit/*.test.ts",
    "generate-docs": "typedoc",
    "dev": "DEBUG=cloudflare-queue-consumer tsx ./example/index.ts"
  },
  "devDependencies": {
    "@types/node": "22.7.4",
    "@types/sinon": "17.0.3",
    "chai": "5.1.1",
    "chai-nock": "1.3.0",
    "eslint": "8.57.0",
    "eslint-config-iplayer": "9.2.0",
    "eslint-config-prettier": "9.1.0",
    "nock": "14.0.0-beta.5",
    "p-event": "6.0.1",
    "prettier": "3.3.3",
    "sinon": "17.0.1",
    "tsx": "4.19.1",
    "typedoc": "0.26.7",
    "typescript": "5.6.2"
  },
  "dependencies": {
    "debug": "^4.3.7"
  },
  "eslintConfig": {
    "extends": [
      "iplayer/base",
      "iplayer/ts",
      "prettier"
    ],
    "parserOptions": {
      "sourceType": "module"
    },
    "rules": {
      "@typescript-eslint/naming-convention": [
        "error",
        {
          "selector": "variable",
          "format": [
            "camelCase",
            "UPPER_CASE",
            "PascalCase"
          ],
          "leadingUnderscore": "allow"
        }
      ]
    }
  },
  "packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
}