-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
139 lines (139 loc) · 4.43 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"name": "@profusion/apollo-validation-directives",
"version": "4.1.2",
"description": "GraphQL directives to implement field validations in Apollo Server",
"author": "Gustavo Sverzut Barbieri <[email protected]>",
"license": "MIT",
"repository": "https://github.com/profusion/apollo-validation-directives",
"lint-staged": {
"*.{ts, js}": [
"eslint",
"jest --bail --findRelatedTests"
]
},
"files": [
"build"
],
"type": "module",
"types": "./build/types/index.d.ts",
"main": "./build/cjs/index.js",
"exports": {
".": {
"types": "./build/types/index.d.ts",
"import": "./build/esm/index.js",
"require": "./build/cjs/index.js"
},
"./hasPermissions": {
"types": "./build/types/hasPermissions.d.ts",
"import": "./build/esm/hasPermissions.js",
"require": "./build/cjs/hasPermissions.js"
},
"./auth": {
"types": "./build/types/auth.d.ts",
"import": "./build/esm/auth.js",
"require": "./build/cjs/auth.js"
},
"./capitalize": {
"types": "./build/types/capitalize.d.ts",
"import": "./build/esm/capitalize.js",
"require": "./build/cjs/capitalize.js"
},
"./cleanupPattern": {
"types": "./build/types/cleanupPattern.d.ts",
"import": "./build/esm/cleanupPattern.js",
"require": "./build/cjs/cleanupPattern.js"
},
"./foreignNodeId": {
"types": "./build/types/foreignNodeId.d.ts",
"import": "./build/esm/foreignNodeId.js",
"require": "./build/cjs/foreignNodeId.js"
},
"./listLength": {
"types": "./build/types/listLength.d.ts",
"import": "./build/esm/listLength.js",
"require": "./build/cjs/listLength.js"
},
"./pattern": {
"types": "./build/types/pattern.d.ts",
"import": "./build/esm/pattern.js",
"require": "./build/cjs/pattern.js"
},
"./range": {
"types": "./build/types/range.d.ts",
"import": "./build/esm/range.js",
"require": "./build/cjs/range.js"
},
"./selfNodeId": {
"types": "./build/types/selfNodeId.d.ts",
"import": "./build/esm/selfNodeId.js",
"require": "./build/cjs/selfNodeId.js"
},
"./stringLength": {
"types": "./build/types/stringLength.d.ts",
"import": "./build/esm/stringLength.js",
"require": "./build/cjs/stringLength.js"
},
"./trim": {
"types": "./build/types/trim.d.ts",
"import": "./build/esm/trim.js",
"require": "./build/cjs/trim.js"
},
"./applyDirectivesToSchema": {
"types": "./build/types/utils/applyDirectivesToSchema.d.ts",
"import": "./build/esm/utils/applyDirectivesToSchema.js",
"require": "./build/cjs/utils/applyDirectivesToSchema.js"
}
},
"scripts": {
"example:value-validation": "ts-node examples/value-validation-directives.ts",
"example:access-control": "ts-node examples/access-control-directives.ts",
"example:federation": "ts-node examples/federation.ts",
"install-peers": "install-peers",
"check-types": "tsc --noEmit",
"run-lint": "eslint --max-warnings=0 --ext .ts lib examples",
"lint": "run-s check-types run-lint",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc",
"build": "run-p build:* && sh ./.scripts/patch-cjs-package.sh",
"test": "jest",
"prepare": "husky install",
"prepublishOnly": "yarn run build"
},
"devDependencies": {
"@apollo/gateway": "^2.5.1",
"@apollo/server": "^4.9.0",
"@apollo/subgraph": "^2.5.1",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-angular": "^17.7.0",
"@types/jest": "^29.5.4",
"@types/lodash.isequal": "^4.5.6",
"@types/node": "18.17.1",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"eslint": "^8.48.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"graphql": "^16.7.1",
"husky": "^8.0.1",
"install-peers-cli": "^2.2.0",
"jest": "^29.6.4",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"graphql": "^16.7.1"
},
"dependencies": {
"@graphql-tools/schema": "^10.0.0",
"@graphql-tools/utils": "^10.0.4",
"graphql-tag": "^2.12.6",
"lodash.isequal": "^4.5.0"
}
}