forked from cjoudrey/graphql-schema-linter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
74 lines (74 loc) · 1.99 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "graphql-schema-linter",
"version": "3.0.0",
"description": "Command line tool and package to validate GraphQL schemas against a set of rules.",
"author": "Christian Joudrey",
"main": "lib/index.js",
"scripts": {
"test": "mocha test/index.js && yarn test:integration",
"test:integration": "node -e 'console.log(\"GraphQL version: \", require(\"graphql\").version);' node lib/cli.js --version && node lib/cli.js test/fixtures/valid.graphql && (cat test/fixtures/valid.graphql | node lib/cli.js --stdin)",
"test:ci": "yarn test && yarn test:ci:graphql-v15.x && yarn test:ci:graphql-v16.x",
"test:ci:graphql-v15.x": "yarn upgrade graphql@^15.0.0 && yarn test",
"test:ci:graphql-v16.x": "yarn upgrade graphql@^16.0.0 && yarn test",
"prepare": "rm -rf lib/* && babel ./src --ignore test --out-dir ./lib"
},
"pkg": {
"scripts": "lib/**/*.js"
},
"homepage": "https://github.com/cjoudrey/graphql-schema-linter",
"repository": {
"type": "git",
"url": "git+https://github.com/cjoudrey/graphql-schema-linter.git"
},
"peerDependencies": {
"graphql": "^15.0.0 || ^16.0.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/register": "^7.9.0",
"graphql": "=15.0.0",
"husky": "4.3.0",
"lint-staged": "10.5.4",
"mocha": "8.4.0",
"prettier": "2.6.2"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "9.4"
}
}
]
]
},
"license": "MIT",
"dependencies": {
"chalk": "^2.0.1",
"columnify": "^1.5.4",
"commander": "^3.0.0",
"cosmiconfig": "^5.2.1",
"glob": "^7.1.2"
},
"bin": {
"graphql-schema-linter": "lib/cli.js"
},
"lint-staged": {
"*.{js,json}": [
"prettier --write"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}