Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mock/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createExecutionContext, getExecutionContext } from "../src/context";
import { startRecordingMocks } from "./utils";

const PORT = 6789;
const PROTO_FILE = "../proto/services.proto";
const PROTO_FILE = "../../proto/services.proto";
const packageDef = protoLoader.loadSync(path.resolve(__dirname, PROTO_FILE));
const grpcObj = grpc.loadPackageDefinition(
packageDef
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
"version": "1.0.0",
"main": "dist/src/index.js",
"files": [
"dist"
"dist",
"proto/services.proto"
],
"scripts": {
"build": "tsc && cp ./proto/services.proto ./dist/proto/",
"build": "tsc",
"prepare": "npm run build",
"commit": "cz"
},
},
"repository": "git@github.com:keploy/typescript-sdk.git",
"author": "Rajat Sharma <lunasunkaiser@gmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/keploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { StrArr } from "../proto/services/StrArr";
import assert = require("assert");
import { createExecutionContext, getExecutionContext } from "./context";

const PROTO_PATH = "../proto/services.proto";
const PROTO_PATH = "../../proto/services.proto";
const packageDef = protoLoader.loadSync(path.resolve(__dirname, PROTO_PATH));
const grpcObj = grpc.loadPackageDefinition(
packageDef
Expand Down