@pact-foundation/pact
Version:
Pact for all things Javascript
161 lines (160 loc) • 5.25 kB
JSON
{
"name": "@pact-foundation/pact",
"version": "15.0.1",
"description": "Pact for all things Javascript",
"main": "./src/index.js",
"types": "./src/index.d.ts",
"scripts": {
"compile": "rimraf dist && tsc",
"clean": "rimraf dist coverage .nyc_output logs pacts",
"predist": "npm run clean",
"dist": "tsc && copyfiles package.json ./dist",
"install-plugins": "./scripts/install-plugins",
"lint": "eslint --config .eslintrc.json \"{src,test}/**/*.ts\"",
"lint:fix": "npm run lint -- --fix",
"format:base": "prettier \"{src,test,examples}/**/*.{ts,js}\"",
"format:fix": "npm run format:base -- --write",
"format:check": "npm run format:base -- --check",
"release": "commit-and-tag-version",
"test": "mocha",
"coverage": "nyc npm run test",
"pretest": "npm run install-plugins",
"docker:alpine:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.alpine -t pact-js:alpine .",
"docker:debian:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.debian -t pact-js:debian .",
"docker:alpine:run": "docker run -e LOG_LEVEL=${LOG_LEVEL:-info} -e GIT_REF=${GIT_REF:-test} -e GITHUB_ACTIONS=${GITHUB_ACTIONS:-false} -e SKIP_EXAMPLES=${SKIP_EXAMPLES:-''} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --rm pact-js:alpine",
"docker:debian:run": "docker run -e LOG_LEVEL=${LOG_LEVEL:-info} -e GIT_REF=${GIT_REF:-test} -e GITHUB_ACTIONS=${GITHUB_ACTIONS:-false} -e SKIP_EXAMPLES=${SKIP_EXAMPLES:-''} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --rm pact-js:debian",
"docker:alpine:attach": "docker run -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --entrypoint /bin/bash --rm -it pact-js:alpine",
"docker:debian:attach": "docker run -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --entrypoint /bin/bash --rm -it pact-js:debian"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pact-foundation/pact-js.git"
},
"engines": {
"node": ">=16"
},
"keywords": [
"pact",
"pact-js",
"javascript",
"contract testing",
"testing",
"consumer driven testing"
],
"author": "Matt Fellows <m@onegeek.com.au> (http://twitter.com/matthewfellows)",
"contributors": [
{
"name": "Tarcio Saraiva",
"email": "tarcio@gmail.com",
"url": "http://twitter.com/tarciosaraiva"
},
{
"name": "Michel Boudreau",
"email": "michelboudreau@gmail.com",
"url": "http://codinghitchhiker.com"
},
{
"name": "Beth Skurrie",
"email": "beth@bethesque.com",
"url": "https://github.com/bethesque"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/pact-foundation/pact-js/issues"
},
"homepage": "https://docs.pact.io/implementation_guides/javascript/",
"standard-version": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Fixes and Improvements"
},
{
"type": "chore",
"hidden": true
},
{
"type": "docs",
"hidden": true
},
{
"type": "style",
"hidden": true
},
{
"type": "refactor",
"hidden": true
},
{
"type": "perf",
"hidden": true
},
{
"type": "test",
"hidden": true
}
]
},
"dependencies": {
"@pact-foundation/pact-core": "^16.0.0",
"axios": "^1.8.4",
"body-parser": "^1.20.3",
"chalk": "4.1.2",
"express": "^4.21.1",
"graphql": "^16.10.0",
"graphql-tag": "^2.9.1",
"http-proxy": "^1.18.1",
"https-proxy-agent": "^7.0.4",
"js-base64": "^3.6.1",
"lodash": "^4.17.21",
"ramda": "^0.30.0",
"randexp": "^0.5.3"
},
"devDependencies": {
"@babel/cli": "7.26.4",
"@babel/core": "7.26.10",
"@babel/preset-env": "7.26.9",
"@pact-foundation/pact-js-prettier-config": "1.0.0",
"@types/chai": "5.2.1",
"@types/chai-as-promised": "8.0.2",
"@types/express": "4.17.21",
"@types/http-proxy": "1.17.16",
"@types/lodash": "4.17.16",
"@types/mocha": "10.0.10",
"@types/nock": "11.1.0",
"@types/node": "22.13.13",
"@types/ramda": "0.30.2",
"@types/sinon": "17.0.4",
"@types/sinon-chai": "2.7.42",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"chai": "5.2.0",
"chai-as-promised": "8.0.1",
"commit-and-tag-version": "12.5.0",
"copyfiles": "2.4.1",
"eslint": "8.57.1",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-prettier": "10.1.1",
"eslint-import-resolver-typescript": "4.2.2",
"eslint-plugin-chai-friendly": "1.0.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-mocha": "10.5.0",
"mocha": "11.1.0",
"nock": "14.0.1",
"nyc": "17.1.0",
"prettier": "3.5.3",
"proxyquire": "2.1.3",
"rimraf": "6.0.1",
"sinon": "19.0.4",
"sinon-chai": "4.0.0",
"source-map-support": "0.5.21",
"tsx": "4.19.3",
"typescript": "5.8.2"
}
}