Skip to content

Commit

Permalink
refactor: use index instead of pact (affects exported TS types)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Oct 8, 2020
1 parent b9f7cab commit 49ff234
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@pact-foundation/pact",
"version": "10.0.0-beta.16",
"description": "Pact for all things Javascript",
"main": "./pact.js",
"types": "./pact.d.ts",
"main": "./index.js",
"types": "./index.d.ts",
"scripts": {
"build": "npm run build:v2 && npm run build:v3",
"build:v2": "npm run lint && npm run compile",
Expand Down
2 changes: 1 addition & 1 deletion src/dsl/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @module PactOptions
*/
import { PactfileWriteMode } from "./mockService"
import { MessageProviders, StateHandlers } from "../pact"
import { MessageProviders, StateHandlers } from "./message"
import { VerifierOptions as PactNodeVerifierOptions } from "@pact-foundation/pact-node"

export type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal"
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions src/messageProviderPact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
*/

import { omit, isEmpty } from "lodash"
import { MessageDescriptor } from "./dsl/message"
import { MessageDescriptor, MessageProvider } from "./dsl/message"
import logger from "./common/logger"
import { VerifierOptions } from "@pact-foundation/pact-node"
import { PactMessageProviderOptions } from "./dsl/options"
import serviceFactory from "@pact-foundation/pact-node"
import * as express from "express"
import * as http from "http"
import { MessageProvider } from "./pact"
import { qToPromise } from "./common/utils"

const bodyParser = require("body-parser")
Expand Down

0 comments on commit 49ff234

Please sign in to comment.