Skip to content

Commit 0df1eb9

Browse files
committed
Fix some linting issues in reactotron-apollo-client
1 parent ede471a commit 0df1eb9

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

lib/reactotron-apollo-client/package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,26 @@
77
"bugs": {
88
"url": "https://github.com/infinitered/reactotron/issues"
99
},
10-
"homepage": "https://github.com/infinitered/reactotron/tree/beta/lib/reactotron-apollo-client",
11-
"repository": "https://github.com/infinitered/reactotron/tree/beta/lib/reactotron-apollo-client",
10+
"homepage": "https://github.com/infinitered/reactotron/tree/master/lib/reactotron-apollo-client",
11+
"repository": "https://github.com/infinitered/reactotron/tree/master/lib/reactotron-apollo-client",
1212
"files": [
1313
"dist",
14-
"LICENSE"
14+
"src"
1515
],
16-
"main": "dist/reactotron-apollo-client.umd.js",
17-
"module": "dist/reactotron-apollo-client.es5.js",
18-
"typings": "dist/types/reactotron-apollo-client.d.ts",
16+
"main": "dist/index.js",
17+
"module": "dist/index.esm.js",
18+
"types": "dist/types/src/index.d.ts",
19+
"react-native": "src/index.ts",
20+
"exports": {
21+
"import": "./dist/index.esm.js",
22+
"types": "./dist/types/src/index.d.ts",
23+
"react-native": "./src/index.ts",
24+
"default": "./dist/index.js"
25+
},
1926
"scripts": {
2027
"test": "jest --passWithNoTests",
2128
"test:watch": "jest --watch --notify",
22-
"format": "prettier '*.{js,ts,tsx,json,md,css,yml}|**/*.{js,ts,tsx,json,md,css,yml}'",
29+
"format": "prettier '*.{js,ts,tsx,json,md,css,yml}|**/*.{js,ts,tsx,json,md,css,yml}' --config ../../.prettierrc --ignore-path ../../.prettierignore",
2330
"format:check": "yarn format --check",
2431
"format:write": "yarn format --write",
2532
"prebuild": "yarn clean",

lib/reactotron-apollo-client/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"allowJs": false,
55
"declaration": true,
66
"declarationDir": "dist/types",
7-
"rootDir": "src",
7+
"rootDir": ".",
88
"emitDeclarationOnly": true,
99
"emitDecoratorMetadata": true,
1010
"allowSyntheticDefaultImports": true,
@@ -17,8 +17,8 @@
1717
"noUnusedLocals": true,
1818
"sourceMap": true,
1919
"target": "es5",
20-
"skipLibCheck": true // Temp?
20+
"esModuleInterop": true,
2121
},
2222
"exclude": ["node_modules"],
23-
"include": ["src"]
23+
"include": ["src", "test"],
2424
}

0 commit comments

Comments
 (0)