Skip to content

Commit a69851a

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into octogonz/ae-message-reporting
2 parents 8176b20 + 5fcdc42 commit a69851a

113 files changed

Lines changed: 1538 additions & 185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/api-documenter/CHANGELOG.json‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,48 @@
11
{
22
"name": "@microsoft/api-documenter",
33
"entries": [
4+
{
5+
"version": "7.0.28",
6+
"tag": "@microsoft/api-documenter_v7.0.28",
7+
"date": "Wed, 27 Feb 2019 22:13:58 GMT",
8+
"comments": {
9+
"dependency": [
10+
{
11+
"comment": "Updating dependency \"@microsoft/api-extractor\" from `7.0.20` to `7.0.21`"
12+
},
13+
{
14+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.11.1` to `3.12.0`"
15+
},
16+
{
17+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.2\" from `0.2.5` to `0.2.6`"
18+
},
19+
{
20+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.32` to `6.0.33`"
21+
}
22+
]
23+
}
24+
},
25+
{
26+
"version": "7.0.27",
27+
"tag": "@microsoft/api-documenter_v7.0.27",
28+
"date": "Wed, 27 Feb 2019 17:13:17 GMT",
29+
"comments": {
30+
"dependency": [
31+
{
32+
"comment": "Updating dependency \"@microsoft/api-extractor\" from `7.0.19` to `7.0.20`"
33+
},
34+
{
35+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.11.0` to `3.11.1`"
36+
},
37+
{
38+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler-3.2\" from `0.2.4` to `0.2.5`"
39+
},
40+
{
41+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.31` to `6.0.32`"
42+
}
43+
]
44+
}
45+
},
446
{
547
"version": "7.0.26",
648
"tag": "@microsoft/api-documenter_v7.0.26",

‎apps/api-documenter/CHANGELOG.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log - @microsoft/api-documenter
22

3-
This log was last generated on Mon, 18 Feb 2019 17:13:23 GMT and should not be manually modified.
3+
This log was last generated on Wed, 27 Feb 2019 22:13:58 GMT and should not be manually modified.
4+
5+
## 7.0.28
6+
Wed, 27 Feb 2019 22:13:58 GMT
7+
8+
*Version update only*
9+
10+
## 7.0.27
11+
Wed, 27 Feb 2019 17:13:17 GMT
12+
13+
*Version update only*
414

515
## 7.0.26
616
Mon, 18 Feb 2019 17:13:23 GMT

‎apps/api-documenter/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-documenter",
3-
"version": "7.0.26",
3+
"version": "7.0.28",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"type": "git",
@@ -15,16 +15,16 @@
1515
"api-documenter": "./bin/api-documenter"
1616
},
1717
"dependencies": {
18-
"@microsoft/api-extractor": "7.0.19",
19-
"@microsoft/node-core-library": "3.11.0",
18+
"@microsoft/api-extractor": "7.0.21",
19+
"@microsoft/node-core-library": "3.12.0",
2020
"@microsoft/ts-command-line": "4.2.3",
2121
"@microsoft/tsdoc": "0.12.7",
2222
"colors": "~1.2.1",
2323
"js-yaml": "~3.9.1"
2424
},
2525
"devDependencies": {
26-
"@microsoft/rush-stack-compiler-3.2": "0.2.4",
27-
"@microsoft/node-library-build": "6.0.31",
26+
"@microsoft/rush-stack-compiler-3.2": "0.2.6",
27+
"@microsoft/node-library-build": "6.0.33",
2828
"@types/js-yaml": "3.9.1",
2929
"@types/node": "8.5.8",
3030
"gulp": "~3.9.1",

‎apps/api-extractor/CHANGELOG.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
{
22
"name": "@microsoft/api-extractor",
33
"entries": [
4+
{
5+
"version": "7.0.21",
6+
"tag": "@microsoft/api-extractor_v7.0.21",
7+
"date": "Wed, 27 Feb 2019 22:13:58 GMT",
8+
"comments": {
9+
"dependency": [
10+
{
11+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.11.1` to `3.12.0`"
12+
}
13+
]
14+
}
15+
},
16+
{
17+
"version": "7.0.20",
18+
"tag": "@microsoft/api-extractor_v7.0.20",
19+
"date": "Wed, 27 Feb 2019 17:13:17 GMT",
20+
"comments": {
21+
"dependency": [
22+
{
23+
"comment": "Updating dependency \"@microsoft/node-core-library\" from `3.11.0` to `3.11.1`"
24+
}
25+
]
26+
}
27+
},
428
{
529
"version": "7.0.19",
630
"tag": "@microsoft/api-extractor_v7.0.19",

‎apps/api-extractor/CHANGELOG.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log - @microsoft/api-extractor
22

3-
This log was last generated on Sun, 24 Feb 2019 20:07:24 GMT and should not be manually modified.
3+
This log was last generated on Wed, 27 Feb 2019 22:13:58 GMT and should not be manually modified.
4+
5+
## 7.0.21
6+
Wed, 27 Feb 2019 22:13:58 GMT
7+
8+
*Version update only*
9+
10+
## 7.0.20
11+
Wed, 27 Feb 2019 17:13:17 GMT
12+
13+
*Version update only*
414

515
## 7.0.19
616
Mon, 18 Feb 2019 17:13:23 GMT

‎apps/api-extractor/bin/api-extractor‎

100644100755
File mode changed.

‎apps/api-extractor/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-extractor",
3-
"version": "7.0.19",
3+
"version": "7.0.21",
44
"description": "Validate, document, and review the exported API for a TypeScript library",
55
"keywords": [
66
"typescript",
@@ -31,7 +31,7 @@
3131
"build": "gulp test --clean"
3232
},
3333
"dependencies": {
34-
"@microsoft/node-core-library": "3.11.0",
34+
"@microsoft/node-core-library": "3.12.0",
3535
"@microsoft/ts-command-line": "4.2.3",
3636
"@microsoft/tsdoc": "0.12.7",
3737
"@types/node": "8.5.8",

‎apps/rush-lib/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
},
2222
"license": "MIT",
2323
"dependencies": {
24-
"@microsoft/node-core-library": "3.11.0",
25-
"@microsoft/package-deps-hash": "2.2.122",
26-
"@microsoft/stream-collator": "3.0.37",
24+
"@microsoft/node-core-library": "3.12.0",
25+
"@microsoft/package-deps-hash": "2.2.124",
26+
"@microsoft/stream-collator": "3.0.39",
2727
"@microsoft/ts-command-line": "4.2.3",
2828
"@pnpm/link-bins": "~1.0.1",
2929
"@pnpm/logger": "~1.0.1",
@@ -49,8 +49,8 @@
4949
"z-schema": "~3.18.3"
5050
},
5151
"devDependencies": {
52-
"@microsoft/rush-stack-compiler-3.2": "0.2.4",
53-
"@microsoft/node-library-build": "6.0.31",
52+
"@microsoft/rush-stack-compiler-3.2": "0.2.6",
53+
"@microsoft/node-library-build": "6.0.33",
5454
"@types/node": "8.5.8",
5555
"@types/node-fetch": "1.6.9",
5656
"@types/tar": "4.0.0",

‎apps/rush-lib/src/cli/actions/PublishAction.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,14 @@ export class PublishAction extends BaseRushAction {
473473
private _calculateTarballName(project: RushConfigurationProject): string {
474474
// Same logic as how npm forms the tarball name
475475
const packageName: string = project.packageName;
476-
const name: string = packageName[0] === '@' ?
477-
packageName.substr(1).replace(/\//g, '-') : packageName;
476+
const name: string = packageName[0] === '@' ? packageName.substr(1).replace(/\//g, '-') : packageName;
478477

479-
return `${name}-${project.packageJson.version}.tgz`;
478+
if (this.rushConfiguration.packageManager === 'yarn') {
479+
// yarn tarballs have a "v" before the version number
480+
return `${name}-v${project.packageJson.version}.tgz`;
481+
} else {
482+
return `${name}-${project.packageJson.version}.tgz`;
483+
}
480484
}
481485

482486
private _setDependenciesBeforePublish(): void {

‎apps/rush-lib/src/logic/taskRunner/TaskRunner.ts‎

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,13 @@ export class TaskRunner {
428428
}
429429

430430
if (task.writer) {
431-
let stderr: string = task.writer.getStdError();
432-
if (stderr && (task.status === TaskStatus.Failure || task.status === TaskStatus.SuccessWithWarning)) {
433-
stderr = stderr.split(os.EOL)
434-
.map(text => text.trim())
435-
.filter(text => text)
436-
.join(os.EOL);
437-
this._terminal.writeLine(stderr + (i !== tasks.length - 1 ? os.EOL : ''));
431+
const stderr: string = task.writer.getStdError();
432+
const shouldPrintDetails: boolean =
433+
task.status === TaskStatus.Failure || task.status === TaskStatus.SuccessWithWarning;
434+
let details: string = stderr ? stderr : task.writer.getStdOutput();
435+
if (details && shouldPrintDetails) {
436+
details = this._abridgeTaskReport(details);
437+
this._terminal.writeLine(details + (i !== tasks.length - 1 ? os.EOL : ''));
438438
}
439439
}
440440
}
@@ -443,4 +443,21 @@ export class TaskRunner {
443443
}
444444
}
445445

446+
/**
447+
* Remove trailing blanks, and all middle lines if text is large
448+
*/
449+
private _abridgeTaskReport(text: string): string {
450+
const headSize: number = 10;
451+
const tailSize: number = 20;
452+
const margin: number = 10;
453+
const lines: Array<string> = text.split(/\s*\r?\n/).filter(line => line);
454+
if (lines.length < headSize + tailSize + margin) {
455+
return lines.join(os.EOL);
456+
}
457+
const amountRemoved: number = lines.length - headSize - tailSize;
458+
const head: string = lines.splice(0, headSize).join(os.EOL);
459+
const tail: string = lines.splice(-tailSize).join(os.EOL);
460+
return `${head}${os.EOL}[...${amountRemoved} lines omitted...]${os.EOL}${tail}`;
461+
}
462+
446463
}

0 commit comments

Comments
 (0)