Skip to content

Commit

Permalink
fix(types): ship index.d.ts
Browse files Browse the repository at this point in the history
resolves #2
  • Loading branch information
macklinu committed May 26, 2017
1 parent 209c0b2 commit 72c7b75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-development",
"description": "Danger plugin for Jest",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs'

import { TestFailureFormatter } from './TestFailureFormatter'

interface IPluginConfig {
export interface IPluginConfig {
testResultsJsonPath?: string
}

Expand Down
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"compilerOptions": {
"declaration": true,
"declarationDir": "dist",
"lib": ["es5", "es2015"],
"module": "commonjs",
"moduleResolution": "node",
Expand All @@ -10,18 +12,17 @@
"noUnusedParameters": true,
"outDir": "dist",
"pretty": true,
"removeComments": true,
"sourceMap": false,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"target": "es5",
"types": ["node"]
},
"include": [
"src/**/*"
"src/**/*.ts"
],
"exclude": [
"node_modules",
"src/__tests__/**/*"
"src/**/*.test.ts"
]
}

0 comments on commit 72c7b75

Please sign in to comment.