-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·100 lines (100 loc) · 3.11 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
{
"name": "apollo-link-directive",
"version": "0.1.0",
"description": "An Apollo Link to easily add custom directives in your GraphQL queries.",
"license": "MIT",
"main": "./lib/bundle.umd.js",
"module": "./lib/index.js",
"jsnext:main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/svengau/apollo-link-directive.git"
},
"bugs": {
"url": "https://github.com/svengau/apollo-link-directive/issues"
},
"homepage": "https://github.com/svengau/apollo-link-directive#readme",
"scripts": {
"build:browser": "browserify ./lib/bundle.umd.js -o=./lib/bundle.js --i apollo-link --i graphql --i apollo-utilities && npm run minify:browser",
"build": "tsc -p .",
"bundle": "rollup -c",
"clean": "rimraf lib/* coverage/*",
"coverage:upload": "codecov",
"deploy": "./scripts/deploy.sh",
"filesize": "npm run build && npm run build:browser && bundlesize",
"lint": "prettier --write 'src/**/*.{j,t}s*'",
"lint-staged": "lint-staged",
"minify:browser": "uglifyjs -c -m -o ./lib/bundle.min.js -- ./lib/bundle.js",
"postbuild": "npm run bundle",
"prebuild": "npm run clean",
"prepublishOnly": "npm run clean && npm run build",
"prettier": "prettier --config .prettierrc",
"prettier:diff": "prettier --config .prettierrc --list-different \"src/**/*.{ts,tsx,js,jsx}\" || true",
"prettier:diff-with-error": "prettier --config .prettierrc --list-different \"src/**/*.{ts,tsx,js,jsx}\"",
"prettier:all": "yarn prettier --write \"./src/**/*.{ts,tsx,js,jsx}\" ",
"test": "jest",
"coverage": "npm run lint && jest --coverage",
"watch": "tsc -w -p .",
"check-types": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.tests.json"
},
"peerDependencies": {
"apollo-link": "1.2.13",
"graphql": "14.5.8"
},
"devDependencies": {
"@babel/core": "7.17.10",
"@types/graphql": "14.5.0",
"@types/jest": "26.0.3",
"@types/node": "14.0.14",
"apollo-cache-inmemory": "1.6.6",
"apollo-client": "2.6.10",
"apollo-link": "1.2.14",
"apollo-utilities": "1.3.4",
"browserify": "16.5.1",
"bundlesize": "0.18.0",
"codecov": "3.7.0",
"graphql": "15.8.0",
"graphql-tag": "2.10.3",
"jest": "26.1.0",
"lerna": "3.22.1",
"lint-staged": "10.2.11",
"pre-commit": "1.2.2",
"prettier": "2.0.5",
"rimraf": "3.0.2",
"rollup": "2.73.0",
"rollup-plugin-copy": "3.3.0",
"rollup-plugin-copy-assets": "2.0.1",
"rollup-plugin-local-resolve": "1.0.7",
"rollup-plugin-sourcemaps": "0.6.2",
"ts-jest": "26.1.1",
"typescript": "3.9.10",
"uglify-js": "3.10.0"
},
"resolutions": {
"babel-core": "7.0.0-bridge.0",
"babel-jest": "23.6.0"
},
"bundlesize": [
{
"name": "apollo-link-directive",
"path": "./lib/bundle.min.js",
"maxSize": "9.5 kb"
}
],
"lint-staged": {
"*.ts*": [
"prettier --write",
"git add"
],
"*.js*": [
"prettier --write",
"git add"
],
"*.json*": [
"prettier --write",
"git add"
]
},
"pre-commit": "lint-staged"
}