Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 084b744

Browse files
committed
Fixing azdo webpack issues
1 parent 07d7891 commit 084b744

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"lint": "tslint 'src/**/*.ts{,x}'",
1111
"lint-fix": "tslint --fix 'src/**/*.ts{,x}'",
1212
"test": "jest --coverage --coverageReporters=cobertura --coverageReporters=html",
13-
"test-coverage-html": "jest --coverage --coverageReporters=html",
14-
"test-watch": "jest --watchAll"
13+
"test-watch": "jest --watchAll",
14+
"postinstall": "cd node_modules/azure-devops-node-api && git apply ../../patches/001-azure-devops-node.patch",
15+
"test-coverage-html": "jest --coverage --coverageReporters=html"
1516
},
1617
"devDependencies": {
1718
"@types/cli-table": "^0.3.0",
@@ -57,7 +58,7 @@
5758
"@azure/arm-storage": "^10.1.0",
5859
"@azure/keyvault-secrets": "^4.0.0-preview.5",
5960
"@azure/ms-rest-nodeauth": "^3.0.0",
60-
"azure-devops-node-api": "^9.0.1",
61+
"azure-devops-node-api": "9.0.1",
6162
"cli-table": "^0.3.1",
6263
"commander": "^3.0.1",
6364
"dotenv": "^8.1.0",

patches/001-azure-devops-node.patch

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- WebApi.js 2019-09-12 17:26:28.000000000 -0700
2+
+++ WebApi.js 2019-10-03 22:58:02.000000000 -0700
3+
@@ -145,7 +145,7 @@
4+
}
5+
}
6+
else {
7+
- const nodeApiVersion = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json'), 'utf8')).version;
8+
+ const nodeApiVersion = require('./package.json').version;
9+
const osName = os.platform();
10+
const osVersion = os.release();
11+
if (requestSettings) {

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ axios@^0.19.0:
10981098
follow-redirects "1.5.10"
10991099
is-buffer "^2.0.2"
11001100

1101-
azure-devops-node-api@^9.0.1:
1101+
11021102
version "9.0.1"
11031103
resolved "https://registry.yarnpkg.com/azure-devops-node-api/-/azure-devops-node-api-9.0.1.tgz#ba6dce7f274db01589a653cdbdf43e71e9f9b527"
11041104
integrity sha512-0veE4EWHObJxzwgHlydG65BjNMuLPkR1nzcQ2K51PIho1/F4llpKt3pelC30Vbex5zA9iVgQ9YZGlkkvOBSksw==

0 commit comments

Comments
 (0)