Skip to content

Commit 72c7b75

Browse files
committed
fix(types): ship index.d.ts
resolves #2
1 parent 209c0b2 commit 72c7b75

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.0-development",
44
"description": "Danger plugin for Jest",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"files": [
78
"dist"
89
],

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as fs from 'fs'
22

33
import { TestFailureFormatter } from './TestFailureFormatter'
44

5-
interface IPluginConfig {
5+
export interface IPluginConfig {
66
testResultsJsonPath?: string
77
}
88

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"compilerOptions": {
3+
"declaration": true,
4+
"declarationDir": "dist",
35
"lib": ["es5", "es2015"],
46
"module": "commonjs",
57
"moduleResolution": "node",
@@ -10,18 +12,17 @@
1012
"noUnusedParameters": true,
1113
"outDir": "dist",
1214
"pretty": true,
13-
"removeComments": true,
1415
"sourceMap": false,
1516
"strictNullChecks": true,
1617
"suppressImplicitAnyIndexErrors": true,
1718
"target": "es5",
1819
"types": ["node"]
1920
},
2021
"include": [
21-
"src/**/*"
22+
"src/**/*.ts"
2223
],
2324
"exclude": [
2425
"node_modules",
25-
"src/__tests__/**/*"
26+
"src/**/*.test.ts"
2627
]
2728
}

0 commit comments

Comments
 (0)