Skip to content

Commit 36730ed

Browse files
committed
Merge branch 'master' of github.com:Microsoft/web-build-tools into nchlswhttkr/git-hooks
2 parents 71a023d + ac03c77 commit 36730ed

114 files changed

Lines changed: 2260 additions & 433 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: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,69 @@
11
{
22
"name": "@microsoft/api-documenter",
33
"entries": [
4+
{
5+
"version": "1.5.49",
6+
"tag": "@microsoft/api-documenter_v1.5.49",
7+
"date": "Thu, 01 Nov 2018 21:33:52 GMT",
8+
"comments": {
9+
"dependency": [
10+
{
11+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler\" from `0.4.2` to `0.4.3`"
12+
},
13+
{
14+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.5` to `6.0.6`"
15+
}
16+
]
17+
}
18+
},
19+
{
20+
"version": "1.5.48",
21+
"tag": "@microsoft/api-documenter_v1.5.48",
22+
"date": "Thu, 01 Nov 2018 19:32:52 GMT",
23+
"comments": {
24+
"dependency": [
25+
{
26+
"comment": "Updating dependency \"@microsoft/api-extractor\" from `6.1.0` to `6.1.1`"
27+
},
28+
{
29+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler\" from `0.4.1` to `0.4.2`"
30+
},
31+
{
32+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.4` to `6.0.5`"
33+
}
34+
]
35+
}
36+
},
37+
{
38+
"version": "1.5.47",
39+
"tag": "@microsoft/api-documenter_v1.5.47",
40+
"date": "Wed, 31 Oct 2018 21:17:50 GMT",
41+
"comments": {
42+
"dependency": [
43+
{
44+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.3` to `6.0.4`"
45+
}
46+
]
47+
}
48+
},
49+
{
50+
"version": "1.5.46",
51+
"tag": "@microsoft/api-documenter_v1.5.46",
52+
"date": "Wed, 31 Oct 2018 17:00:55 GMT",
53+
"comments": {
54+
"dependency": [
55+
{
56+
"comment": "Updating dependency \"@microsoft/api-extractor\" from `6.0.9` to `6.1.0`"
57+
},
58+
{
59+
"comment": "Updating dependency \"@microsoft/rush-stack-compiler\" from `0.4.0` to `0.4.1`"
60+
},
61+
{
62+
"comment": "Updating dependency \"@microsoft/node-library-build\" from `6.0.2` to `6.0.3`"
63+
}
64+
]
65+
}
66+
},
467
{
568
"version": "1.5.45",
669
"tag": "@microsoft/api-documenter_v1.5.45",

‎apps/api-documenter/CHANGELOG.md‎

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

3-
This log was last generated on Sat, 27 Oct 2018 03:45:51 GMT and should not be manually modified.
3+
This log was last generated on Thu, 01 Nov 2018 21:33:52 GMT and should not be manually modified.
4+
5+
## 1.5.49
6+
Thu, 01 Nov 2018 21:33:52 GMT
7+
8+
*Version update only*
9+
10+
## 1.5.48
11+
Thu, 01 Nov 2018 19:32:52 GMT
12+
13+
*Version update only*
14+
15+
## 1.5.47
16+
Wed, 31 Oct 2018 21:17:50 GMT
17+
18+
*Version update only*
19+
20+
## 1.5.46
21+
Wed, 31 Oct 2018 17:00:55 GMT
22+
23+
*Version update only*
424

525
## 1.5.45
626
Sat, 27 Oct 2018 03:45:51 GMT

‎apps/api-documenter/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-documenter",
3-
"version": "1.5.45",
3+
"version": "1.5.49",
44
"description": "Read JSON files from api-extractor, generate documentation pages",
55
"repository": {
66
"type": "git",
@@ -15,15 +15,15 @@
1515
"api-documenter": "./bin/api-documenter"
1616
},
1717
"dependencies": {
18-
"@microsoft/api-extractor": "6.0.9",
18+
"@microsoft/api-extractor": "6.1.1",
1919
"@microsoft/node-core-library": "3.5.0",
2020
"@microsoft/ts-command-line": "4.2.2",
2121
"colors": "~1.2.1",
2222
"js-yaml": "~3.9.1"
2323
},
2424
"devDependencies": {
25-
"@microsoft/rush-stack-compiler": "0.4.0",
26-
"@microsoft/node-library-build": "6.0.2",
25+
"@microsoft/rush-stack-compiler": "0.4.3",
26+
"@microsoft/node-library-build": "6.0.6",
2727
"@types/js-yaml": "3.9.1",
2828
"@types/node": "8.5.8",
2929
"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": "6.1.1",
6+
"tag": "@microsoft/api-extractor_v6.1.1",
7+
"date": "Thu, 01 Nov 2018 19:32:52 GMT",
8+
"comments": {
9+
"patch": [
10+
{
11+
"comment": "Fix an issue where EcmaScript symbols (\"computed property names\") were missing from .d.ts rollups"
12+
}
13+
]
14+
}
15+
},
16+
{
17+
"version": "6.1.0",
18+
"tag": "@microsoft/api-extractor_v6.1.0",
19+
"date": "Wed, 31 Oct 2018 17:00:54 GMT",
20+
"comments": {
21+
"minor": [
22+
{
23+
"comment": "Added an api to invoke api extractor processor by supplying api extractor json config file."
24+
}
25+
]
26+
}
27+
},
428
{
529
"version": "6.0.9",
630
"tag": "@microsoft/api-extractor_v6.0.9",

‎apps/api-extractor/CHANGELOG.md‎

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

3-
This log was last generated on Thu, 25 Oct 2018 23:20:40 GMT and should not be manually modified.
3+
This log was last generated on Thu, 01 Nov 2018 19:32:52 GMT and should not be manually modified.
4+
5+
## 6.1.1
6+
Thu, 01 Nov 2018 19:32:52 GMT
7+
8+
### Patches
9+
10+
- Fix an issue where EcmaScript symbols ("computed property names") were missing from .d.ts rollups
11+
12+
## 6.1.0
13+
Wed, 31 Oct 2018 17:00:54 GMT
14+
15+
### Minor changes
16+
17+
- Added an api to invoke api extractor processor by supplying api extractor json config file.
418

519
## 6.0.9
620
Thu, 25 Oct 2018 23:20:40 GMT

‎apps/api-extractor/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microsoft/api-extractor",
3-
"version": "6.0.9",
3+
"version": "6.1.1",
44
"description": "Validate, document, and review the exported API for a TypeScript library",
55
"keywords": [
66
"typescript",
@@ -43,11 +43,11 @@
4343
"z-schema": "~3.18.3"
4444
},
4545
"devDependencies": {
46-
"@microsoft/rush-stack-compiler": "0.4.0",
46+
"@microsoft/rush-stack-compiler": "0.4.3",
4747
"tslint-microsoft-contrib": "~5.2.1",
4848
"@types/lodash": "4.14.116",
4949
"gulp": "~3.9.1",
50-
"@microsoft/node-library-build": "6.0.2",
50+
"@microsoft/node-library-build": "6.0.6",
5151
"@types/jest": "21.1.10"
5252
}
5353
}

‎apps/api-extractor/src/extractor/Extractor.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,17 @@ export class Extractor {
158158
return analysisFilePaths;
159159
}
160160

161+
/**
162+
* Invokes the API Extractor engine, using the api extractor configuration file.
163+
* @param jsonConfigFile - Path to api extractor json config file.
164+
* @param options - IExtractor options.
165+
*/
166+
public static processProjectFromConfigFile(jsonConfigFile: string, options?: IExtractorOptions): void {
167+
const configObject: IExtractorConfig = JsonFile.loadAndValidate(jsonConfigFile, Extractor.jsonSchema);
168+
const extractor: Extractor = new Extractor(configObject, options);
169+
extractor.processProject();
170+
}
171+
161172
private static _applyConfigDefaults(config: IExtractorConfig): IExtractorConfig {
162173
// Use the provided config to override the defaults
163174
const normalized: IExtractorConfig = lodash.merge(

‎apps/api-extractor/src/generators/dtsRollup/AstSymbolTable.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export class AstSymbolTable {
197197
// is this a reference to another AstSymbol?
198198
case ts.SyntaxKind.TypeReference: // general type references
199199
case ts.SyntaxKind.ExpressionWithTypeArguments: // special case for e.g. the "extends" keyword
200+
case ts.SyntaxKind.ComputedPropertyName: // used for EcmaScript "symbols", e.g. "[toPrimitive]".
200201
{
201202
// Sometimes the type reference will involve multiple identifiers, e.g. "a.b.C".
202203
// In this case, we only need to worry about importing the first identifier,

‎apps/api-extractor/src/generators/dtsRollup/DtsRollupGenerator.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ export class DtsRollupGenerator {
346346
const listPrefix: string = list.getSourceFile().text
347347
.substring(list.getStart(), list.declarations[0].getStart());
348348
span.modification.prefix = 'declare ' + listPrefix + span.modification.prefix;
349+
350+
if (dtsEntry.exported) {
351+
span.modification.prefix = 'export ' + span.modification.prefix;
352+
}
353+
349354
span.modification.suffix = ';';
350355
}
351356
break;

‎apps/rush-lib/package.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"license": "MIT",
2323
"dependencies": {
2424
"@microsoft/node-core-library": "3.5.0",
25-
"@microsoft/package-deps-hash": "2.2.93",
26-
"@microsoft/stream-collator": "3.0.8",
25+
"@microsoft/package-deps-hash": "2.2.97",
26+
"@microsoft/stream-collator": "3.0.12",
2727
"@microsoft/ts-command-line": "4.2.2",
2828
"@pnpm/link-bins": "~1.0.1",
2929
"@pnpm/logger": "~1.0.1",
@@ -43,16 +43,15 @@
4343
"node-fetch": "~2.1.2",
4444
"npm-package-arg": "~5.1.2",
4545
"read-package-tree": "~5.1.5",
46-
"rimraf": "~2.5.4",
4746
"semver": "~5.3.0",
4847
"strict-uri-encode": "~2.0.0",
4948
"tar": "~4.4.1",
5049
"wordwrap": "~1.0.0",
5150
"z-schema": "~3.18.3"
5251
},
5352
"devDependencies": {
54-
"@microsoft/rush-stack-compiler": "0.4.0",
55-
"@microsoft/node-library-build": "6.0.2",
53+
"@microsoft/rush-stack-compiler": "0.4.3",
54+
"@microsoft/node-library-build": "6.0.6",
5655
"@types/node": "8.5.8",
5756
"@types/node-fetch": "1.6.9",
5857
"@types/tar": "4.0.0",

0 commit comments

Comments
 (0)