-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 2.41 KB
/
package.json
File metadata and controls
61 lines (61 loc) · 2.41 KB
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
55
56
57
58
59
60
61
{
"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",
"type": "module",
"bin": {
"graphql-to-openapi": "dist/bin/graphql-to-openapi.js"
},
"resolutions": {
"rollup": "npm:@rollup/wasm-node"
},
"scripts": {
"lint": "eslint *.ts **/*.ts tests/**/*.ts",
"knip": "knip",
"prepare": "tsc",
"testall": "npm run test && npm run test-cli && npm run knip",
"test": "vitest --coverage run",
"test-cli-1": "tsx bin/graphql-to-openapi --schema tests/basics/complexInputsSchema.graphql --query tests/basics/complexInputs.graphql > out.json && tsx bin/stable-stringify-json --filename=out.json && diff out.json tests/basics/complexInputs.json && rm out.json",
"test-cli-2": "tsx bin/graphql-to-openapi --introspection-schema-json tests/basics/complexInputsSchema.json --query tests/basics/complexInputs.graphql > out.json && tsx bin/stable-stringify-json --filename=out.json && diff out.json tests/basics/complexInputs.json && rm out.json",
"test-cli-3": "tsx 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": "vitest --coverage --watch",
"watch": "tsc --watch"
},
"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",
"devDependencies": {
"@eslint/js": "^9.39.2",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^24.0.7",
"@vitest/coverage-v8": "^4.0.17",
"commander": "^14.0.2",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"json-stable-stringify": "^1.3.0",
"knip": "^5.81.0",
"prettier": "^3.8.0",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.0",
"vitest": "^4.0.17"
},
"dependencies": {
"graphql": "^16.9.0",
"yaml": "^2.7.0"
},
"types": "dist/index.d.ts"
}