|
1 | 1 | {
|
2 | 2 | "name": "relay-compiler-language-typescript",
|
3 | 3 | "version": "1.1.0",
|
4 |
| - "description": "A language plugin for Relay that adds TypeScript support, including emitting type definitions.", |
| 4 | + "description": |
| 5 | + "A language plugin for Relay that adds TypeScript support, including emitting type definitions.", |
5 | 6 | "license": "MIT",
|
6 |
| - "keywords": [ |
7 |
| - "relay", |
8 |
| - "graphql", |
9 |
| - "react", |
10 |
| - "typescript" |
11 |
| - ], |
| 7 | + "keywords": ["relay", "graphql", "react", "typescript"], |
12 | 8 | "contributors": [
|
13 | 9 | {
|
14 | 10 | "name": "Kaare Hoff Skovgaard",
|
|
19 | 15 |
|
20 | 16 | }
|
21 | 17 | ],
|
22 |
| - "homepage": "https://github.com/relay-tools/relay-compiler-language-typescript", |
| 18 | + "homepage": |
| 19 | + "https://github.com/relay-tools/relay-compiler-language-typescript", |
23 | 20 | "repository": {
|
24 | 21 | "type": "git",
|
25 |
| - "url": "https://github.com/relay-tools/relay-compiler-language-typescript.git" |
| 22 | + "url": |
| 23 | + "https://github.com/relay-tools/relay-compiler-language-typescript.git" |
26 | 24 | },
|
27 | 25 | "bugs": {
|
28 |
| - "url": "https://github.com/relay-tools/relay-compiler-language-typescript/issues" |
| 26 | + "url": |
| 27 | + "https://github.com/relay-tools/relay-compiler-language-typescript/issues" |
29 | 28 | },
|
30 | 29 | "main": "lib/index.js",
|
31 |
| - "files": [ |
32 |
| - "lib" |
33 |
| - ], |
| 30 | + "files": ["lib"], |
34 | 31 | "scripts": {
|
35 | 32 | "prepublish": "npm run build",
|
36 | 33 | "build": "rm -rf lib && tsc",
|
37 |
| - "relay": "node bin/relay-compiler.js --schema test/schema.graphql --src test/ --outputDir __generated__", |
| 34 | + "relay": |
| 35 | + "node bin/relay-compiler.js --schema test/schema.graphql --src test/ --outputDir __generated__", |
38 | 36 | "lint": "tslint -c tslint.json --project tsconfig.json",
|
39 | 37 | "test": "npm run type-check && jest",
|
40 | 38 | "type-check": "tsc --noEmit --pretty",
|
41 | 39 | "prettier": "prettier --write '{src,types}/**/*.ts'",
|
42 |
| - "sync-fixtures": "rsync -avh --delete --stats --progress ../relay/packages/relay-compiler/language/javascript/__tests__/fixtures/flow-generator/*.graphql test/fixtures/type-generator", |
| 40 | + "sync-fixtures": |
| 41 | + "rsync -avh --delete --stats --progress ../relay/packages/relay-compiler/language/javascript/__tests__/fixtures/flow-generator/*.graphql test/fixtures/type-generator", |
43 | 42 | "precommit": "lint-staged"
|
44 | 43 | },
|
45 | 44 | "dependencies": {
|
|
67 | 66 | "jest": "^22.1.4",
|
68 | 67 | "lint-staged": "^7.3.0",
|
69 | 68 | "prettier": "^1.10.2",
|
70 |
| - "relay-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz", |
71 |
| - "relay-runtime": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz", |
72 |
| - "relay-test-utils": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-test-utils-1.6.1-plugin.1.tgz", |
| 69 | + "relay-compiler": |
| 70 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz", |
| 71 | + "relay-runtime": |
| 72 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz", |
| 73 | + "relay-test-utils": |
| 74 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-test-utils-1.6.1-plugin.1.tgz", |
73 | 75 | "ts-jest": "^22.0.1",
|
74 | 76 | "tslint-config-prettier": "^1.15.0",
|
75 | 77 | "typescript": "2.8.1"
|
76 | 78 | },
|
77 | 79 | "resolutions": {
|
78 |
| - "graphql-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/graphql-compiler-1.6.1-plugin.1.tgz", |
79 |
| - "relay-compiler": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz", |
80 |
| - "relay-runtime": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz", |
81 |
| - "relay-test-utils": "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-test-utils-1.6.1-plugin.1.tgz" |
| 80 | + "graphql-compiler": |
| 81 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/graphql-compiler-1.6.1-plugin.1.tgz", |
| 82 | + "relay-compiler": |
| 83 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-compiler-1.6.1-plugin.1.tgz", |
| 84 | + "relay-runtime": |
| 85 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-runtime-1.6.1-plugin.1.tgz", |
| 86 | + "relay-test-utils": |
| 87 | + "https://github.com/alloy/relay/releases/download/v1.6.1-plugin.1/relay-test-utils-1.6.1-plugin.1.tgz" |
82 | 88 | },
|
83 | 89 | "jest": {
|
84 | 90 | "transform": {
|
85 | 91 | "^.+\\.tsx?$": "ts-jest"
|
86 | 92 | },
|
87 | 93 | "testRegex": "test/.+?-test\\.tsx?$",
|
88 |
| - "moduleFileExtensions": [ |
89 |
| - "js", |
90 |
| - "ts", |
91 |
| - "tsx" |
92 |
| - ] |
| 94 | + "moduleFileExtensions": ["js", "ts", "tsx"] |
93 | 95 | },
|
94 | 96 | "lint-staged": {
|
| 97 | + "**/*.json": ["prettier --write", "git add"], |
95 | 98 | "{src,types}/**/*.ts": [
|
96 | 99 | "tslint -c tslint.json --fix",
|
97 | 100 | "prettier --write",
|
|
0 commit comments