Skip to content

Commit

Permalink
fix(sdk build, package.json): added a copy-files script which is OS i…
Browse files Browse the repository at this point in the history
…ndependent

Previously we were using cp command to copy services.proto file from proto folder to dist folder but
cp command doesnt work for windows and hence the build fails in windows. I added "copy-files" script
which uses copyfiles npm module to copy proto file and is OS independent.

fix #51
  • Loading branch information
Hermione2408 committed Mar 1, 2023
1 parent 88691f5 commit e2cffb3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"dist"
],
"scripts": {
"build": "tsc && cp ./proto/services.proto ./dist/proto/",
"build": "tsc && yarn copy-files",
"prepare": "npm run build",
"commit": "cz"
"commit": "cz",
"copy-files":"copyfiles -u 1 ./proto/services.proto ./dist/proto/"
},
"repository": "[email protected]:keploy/typescript-sdk.git",
"author": "Rajat Sharma <[email protected]>",
Expand Down Expand Up @@ -49,6 +50,7 @@
"import-in-the-middle": "^1.3.4",
"merge-descriptors": "^1.0.1",
"node-fetch": "^2.6.7",
"require-in-the-middle": "^5.1.0"
"require-in-the-middle": "^5.1.0",
"copyfiles": "^2.4.1"
}
}

0 comments on commit e2cffb3

Please sign in to comment.