Skip to content

Instantly share code, notes, and snippets.

@zsims
Last active January 6, 2018 11:03
Show Gist options
  • Save zsims/904dcb7d7fcc2543776740be65b171c0 to your computer and use it in GitHub Desktop.
Save zsims/904dcb7d7fcc2543776740be65b171c0 to your computer and use it in GitHub Desktop.
Reproduction of pact-js missing type definitions
import { Pact } from "@pact-foundation/pact";
{
"name": "pact-js-peer-types",
"version": "1.0.0",
"description": "Reproduction of missing typescript peer types",
"private": true,
"license": "UNLICENCED",
"author": "Zachary Sims",
"keywords": [],
"dependencies": {
},
"devDependencies": {
"@pact-foundation/pact": "^5.3.1",
"@types/node": "^8.5.7",
"typescript": "^2.4.2"
},
"scripts": {
"pretest": "tsc",
"test": "rimraf ./obj && tsc && mocha \"obj/**/*.js\""
}
}
{
"compilerOptions": {
"outDir": "./obj",
"sourceMap": true,
"noImplicitAny": false,
"allowJs": false,
"module": "commonjs",
"moduleResolution": "node",
"target": "es6",
"experimentalDecorators": false,
"types": [
"node"
]
},
"include": [
"mytest.spec.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment