/
package.json
54 lines (54 loc) · 2.28 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "graphql-to-openapi",
"description": "A utility for converting the combination of an graphql schema and graphql query into an openapi specification.",
"main": "dist/index.js",
"bin": {
"graphql-to-openapi": "dist/bin/graphql-to-openapi.js"
},
"scripts": {
"lint": "eslint *.ts **/*.ts tests/**/*.ts",
"prepare": "tsc",
"testall": "npm run test && npm run test-cli",
"test": "jest --coverage --verbose",
"test-cli-1": "ts-node bin/graphql-to-openapi --schema tests/basics/complexInputsSchema.graphql --query tests/basics/complexInputs.graphql > out.json && ts-node bin/stable-stringify-json --filename=out.json && diff out.json tests/basics/complexInputs.json && rm out.json",
"test-cli-2": "ts-node bin/graphql-to-openapi --introspection-schema-json tests/basics/complexInputsSchema.json --query tests/basics/complexInputs.graphql > out.json && ts-node bin/stable-stringify-json --filename=out.json && diff out.json tests/basics/complexInputs.json && rm out.json",
"test-cli-3": "ts-node bin/graphql-to-openapi --introspection-schema-json tests/basics/complexInputsSchema.json --query tests/basics/complexInputs.graphql --yaml > out.yaml && diff out.yaml tests/basics/complexInputs.yaml && rm out.yaml",
"test-cli": "npm run test-cli-1 && npm run test-cli-2 && npm run test-cli-3",
"test:watch": "npm run test -- --watchAll"
},
"repository": {
"type": "git",
"url": "git+https://github.com/schwer/graphql-to-openapi.git"
},
"keywords": [
"graphql",
"openapi"
],
"author": "Peter Schwer",
"license": "MIT",
"bugs": {
"url": "https://github.com/schwer/graphql-to-openapi/issues"
},
"homepage": "https://github.com/schwer/graphql-to-openapi#readme",
"dependencies": {
"commander": "^12.0.0",
"graphql": "^16.8.1",
"yaml": "^2.3.4"
},
"devDependencies": {
"@types/jest": "^28.1.6",
"@types/node": "^20.10.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"json-stable-stringify": "1.1.1",
"prettier": "^2.8.8",
"ts-jest": "^28.0.8",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"types": "dist/index.d.ts"
}