Skip to content

Commit

Permalink
Fix relative paths used for checking package versions (#141)
Browse files Browse the repository at this point in the history
* Fix relative paths used for checking package versions

* 2.10.12
  • Loading branch information
daviwil authored Mar 13, 2020
1 parent 6b80733 commit 66b46e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions legacy/coverage/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ async function collectCoverage() {
comment += "\n\n";
}

const testServerVersion = require(join(coverageFolder, "..", "package.json")).version;
const testServerVersion = require(join(coverageFolder, "..", "..", "package.json")).version;
return `${commentIndicatorCoverage}# 🤖 AutoRest automatic feature coverage report 🤖\n*feature set version ${testServerVersion}*\n\n${comment}`;
}
function getPublishedPackageVersion() {
return require(join(__dirname, "..", "..", "..", "..", "package.json")).version;
return require(join(__dirname, "..", "..", "..", "..", "..", "package.json")).version;
}
async function pushCoverage(repo, ref, azStorageAccount, azStorageAccessKey, comment) {
const version = getPublishedPackageVersion();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft.azure/autorest.testserver",
"version": "2.10.11",
"version": "2.10.12",
"main": "./legacy/startup/www.js",
"bin": {
"start-autorest-express": "./.scripts/start-autorest-express.js",
Expand Down

0 comments on commit 66b46e6

Please sign in to comment.