UNPKG

3.13 kBJSONView Raw
1{
2 "name": "react-apollo-hooks",
3 "version": "0.4.1",
4 "description": "",
5 "sideEffects": false,
6 "main": "lib/index.js",
7 "module": "es/index.js",
8 "typings": "lib/index.d.ts",
9 "files": [
10 "es",
11 "lib"
12 ],
13 "scripts": {
14 "build:cjs": "rimraf lib && babel src --extensions '.ts' --extensions '.tsx' --ignore '**/__tests__' --ignore '**/__testutils__' -d lib",
15 "build:es": "rimraf es && cross-env ES_MODULES=true babel src --extensions '.ts' --extensions '.tsx' --ignore '**/__tests__' --ignore '**/__testutils__' -d es",
16 "build:typings": "tsc -p tsconfig.typings.json",
17 "build": "npm run build:cjs && npm run build:es && npm run build:typings",
18 "typings-check": "tsc --noEmit",
19 "format-check": "prettier --list-different \"**/*.{js,ts,tsx}\"",
20 "format": "prettier --write \"**/*.{js,ts,tsx}\"",
21 "lint": "tslint --project . \"src/**/*.{ts,tsx}\"",
22 "prepublishOnly": "npm run build",
23 "test": "jest"
24 },
25 "author": "Daniel Trojanowski",
26 "license": "MIT",
27 "homepage": "https://github.com/trojanowski/react-apollo-hooks#readme",
28 "repository": {
29 "type": "git",
30 "url": "https://github.com/trojanowski/react-apollo-hooks.git"
31 },
32 "jest": {
33 "setupTestFrameworkScriptFile": "./src/__testutils__/setupTests.ts",
34 "transform": {
35 "^.+\\.(ts|tsx)$": "babel-jest"
36 },
37 "testMatch": [
38 "**/__tests__/**/*-test.ts?(x)"
39 ],
40 "testPathIgnorePatterns": [
41 "/<rootDir>/es/",
42 "/<rootDir>/lib/",
43 "/node_modules/"
44 ],
45 "moduleFileExtensions": [
46 "ts",
47 "tsx",
48 "js",
49 "json",
50 "jsx",
51 "node"
52 ]
53 },
54 "husky": {
55 "hooks": {
56 "pre-commit": "lint-staged"
57 }
58 },
59 "lint-staged": {
60 "**/*.js": [
61 "prettier --write",
62 "git add"
63 ],
64 "**/*.{ts,tsx}": [
65 "tslint --fix --project .",
66 "prettier --write",
67 "git add"
68 ]
69 },
70 "peerDependencies": {
71 "apollo-client": "*",
72 "graphql": "*",
73 "react": "^16.8.0"
74 },
75 "dependencies": {
76 "lodash": "^4.17.11"
77 },
78 "devDependencies": {
79 "@babel/cli": "^7.1.2",
80 "@babel/core": "^7.1.5",
81 "@babel/preset-env": "^7.1.0",
82 "@babel/preset-react": "^7.0.0",
83 "@babel/preset-typescript": "^7.1.0",
84 "@types/graphql": "^14.0.3",
85 "@types/jest": "^23.3.10",
86 "@types/lodash": "^4.14.119",
87 "@types/react": "^16.8.2",
88 "@types/react-dom": "^16.8.0",
89 "apollo-cache-inmemory": "^1.3.11",
90 "apollo-client": "^2.4.7",
91 "apollo-link": "^1.2.4",
92 "apollo-link-mock": "^1.0.1",
93 "babel-core": "^7.0.0-bridge.0",
94 "babel-jest": "^23.6.0",
95 "cross-env": "^5.2.0",
96 "graphql": "^14.0.2",
97 "graphql-tag": "^2.10.0",
98 "husky": "^1.2.0",
99 "jest": "^23.6.0",
100 "jest-dom": "^2.1.1",
101 "jest-react-profiler": "^0.1.3",
102 "lint-staged": "^8.1.0",
103 "prettier": "^1.15.2",
104 "react": "16.8.1",
105 "react-dom": "16.8.1",
106 "react-testing-library": "^5.5.3",
107 "rimraf": "^2.6.2",
108 "standard-version": "^4.4.0",
109 "tslint": "^5.12.0",
110 "tslint-config-prettier": "^1.17.0",
111 "tslint-react": "^3.6.0",
112 "typescript": "^3.2.2"
113 }
114}