Skip to content

Commit 7f1fbd9

Browse files
committed
Merge branch 'master' into synonyms
# Conflicts: # tsdoc/src/__tests__/ParsingBasics.test.ts # tsdoc/src/__tests__/__snapshots__/ParsingBasics.test.ts.snap # tsdoc/src/parser/NodeParser.ts
2 parents d021a67 + 91b05e6 commit 7f1fbd9

35 files changed

+3041
-899
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ yarn.lock merge=binary
7373
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor
7474
# may also require a special configuration to allow comments in JSON.
7575
#
76-
# For more information, see this issue: https://github.com/Microsoft/web-build-tools/issues/1088
76+
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088
7777
#
7878
*.json linguist-language=JSON-with-Comments

.gitignore

+7-7
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jspm_packages/
5555
# next.js build output
5656
.next
5757

58-
# Common toolchain intermediate files
59-
temp
58+
# OS X temporary files
59+
.DS_Store
6060

61-
# Rush files
62-
common/temp/**
63-
package-deps.json
64-
.rush/temp/**
61+
# Rush temporary files
62+
common/temp/
63+
**/.rush/temp/
6564

65+
# Common toolchain intermediate files
66+
temp
6667
lib
6768
dist
68-
temp

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The TSDoc specification aims to meet these requirements:
5555
- **Common core**: Common tags such as `@param` and `@returns` will have consistent behavior across all tools.
5656
- **Extensible**: Each tool can supplement the core tags with custom tags for specialized scenarios.
5757
- **Interoperable**: The TSDoc standard guarantees that unsupported custom tags won't interfere with parsing of other content. TSDoc also eliminates Markdown ambiguities. (Are backticks allowed inside a `{@link}` tag? What happens if there is only one backtick? etc.)
58-
- **Multi-package support**: Many teams ship a collection of NPM packages that work together and are documented as a set. The cross-referencing syntax (e.g. `{@link}` or `{@inheritdoc}`) needs a portable way to reference API items imported from other packages. We also define *package.json* metadata that enables tooling to detect whether a dependency's *.d.ts doc comments should be parsed as TSDoc or not.
58+
- **Multi-package support**: Many teams ship a collection of NPM packages that work together and are documented as a set. The cross-referencing syntax (e.g. `{@link}` or `{@inheritDoc}`) needs a portable way to reference API items imported from other packages. We also define *package.json* metadata that enables tooling to detect whether a dependency's *.d.ts doc comments should be parsed as TSDoc or not.
5959
- **Open standard**: TSDoc is an open source, community-driven standard. You are encouraged to contribute your own ideas and pull requests.
6060

6161
The **@microsoft/tsdoc** library package brings in some additional goals:

api-demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "A code sample that illustrates usage of the API for @microsoft/tsdoc",
66
"license": "MIT",
77
"dependencies": {
8-
"@microsoft/tsdoc": "0.12.16",
8+
"@microsoft/tsdoc": "0.12.19",
99
"@types/node": "10.17.5",
1010
"colors": "~1.3.3"
1111
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/tsdoc",
5+
"comment": "Improve documentation for `@inheritDoc`",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc",
10+
"email": "arnog@users.noreply.github.com"
11+
}

common/config/rush/command-line.json

+34-2
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,40 @@
164164
// * (Required) A list of custom commands and/or built-in Rush commands that this parameter may
165165
// * be used with. The parameter will be appended to the shell command that Rush invokes.
166166
// */
167-
// "associatedCommands": [ "build", "rebuild" ]
167+
// "associatedCommands": [ "build", "rebuild" ]
168168
// },
169169
//
170170
// {
171171
// /**
172172
// * (Required) Determines the type of custom parameter.
173-
// * A "flag" is a custom command-line parameter whose presence acts as an on/off switch.
173+
// * A "string" is a custom command-line parameter whose value is a simple text string.
174+
// */
175+
// "parameterKind": "string",
176+
// "longName": "--my-string",
177+
// "description": "A custom string parameter for the \"my-global-command\" custom command",
178+
//
179+
// "associatedCommands": [ "my-global-command" ],
180+
//
181+
// /**
182+
// * The name of the argument, which will be shown in the command-line help.
183+
// *
184+
// * For example, if the parameter name is '--count" and the argument name is "NUMBER",
185+
// * then the command-line help would display "--count NUMBER". The argument name must
186+
// * be comprised of upper-case letters, numbers, and underscores. It should be kept short.
187+
// */
188+
// "argumentName": "SOME_TEXT",
189+
//
190+
// /**
191+
// * If true, this parameter must be included with the command. The default is false.
192+
// */
193+
// "required": false
194+
// },
195+
//
196+
// {
197+
// /**
198+
// * (Required) Determines the type of custom parameter.
199+
// * A "choice" is a custom command-line parameter whose argument must be chosen from a list of
200+
// * allowable alternatives.
174201
// */
175202
// "parameterKind": "choice",
176203
// "longName": "--my-choice",
@@ -179,6 +206,11 @@
179206
// "associatedCommands": [ "my-global-command" ],
180207
//
181208
// /**
209+
// * If true, this parameter must be included with the command. The default is false.
210+
// */
211+
// "required": false,
212+
//
213+
// /**
182214
// * Normally if a parameter is omitted from the command line, it will not be passed
183215
// * to the shell command. this value will be inserted by default. Whereas if a "defaultValue"
184216
// * is defined, the parameter will always be passed to the shell command, and will use the

common/config/rush/common-versions.json

+22-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/common-versions.schema.json",
77

88
/**
9-
* A table that specifies a "preferred version" for a dependency package. The "preferred version"
10-
* is typically used to hold an indirect dependency back to a specific version, however generally
11-
* it can be any SemVer range specifier (e.g. "~1.2.3"), and it will narrow any (compatible)
12-
* SemVer range specifier. See the Rush documentation for details about this feature.
9+
* A table that specifies a "preferred version" for a given NPM package. This feature is typically used
10+
* to hold back an indirect dependency to a specific older version, or to reduce duplication of indirect dependencies.
11+
*
12+
* The "preferredVersions" value can be any SemVer range specifier (e.g. "~1.2.3"). Rush injects these values into
13+
* the "dependencies" field of the top-level common/temp/package.json, which influences how the package manager
14+
* will calculate versions. The specific effect depends on your package manager. Generally it will have no
15+
* effect on an incompatible or already constrained SemVer range. If you are using PNPM, similar effects can be
16+
* achieved using the pnpmfile.js hook. See the Rush documentation for more details.
1317
*
1418
* After modifying this field, it's recommended to run "rush update --full" so that the package manager
1519
* will recalculate all version selections.
@@ -24,6 +28,20 @@
2428
"@types/jest-diff": "20.0.1"
2529
},
2630

31+
/**
32+
* When set to true, for all projects in the repo, all dependencies will be automatically added as preferredVersions,
33+
* except in cases where different projects specify different version ranges for a given dependency. For older
34+
* package managers, this tended to reduce duplication of indirect dependencies. However, it can sometimes cause
35+
* trouble for indirect dependencies with incompatible peerDependencies ranges.
36+
*
37+
* The default value is true. If you're encountering installation errors related to peer dependencies,
38+
* it's recommended to set this to false.
39+
*
40+
* After modifying this field, it's recommended to run "rush update --full" so that the package manager
41+
* will recalculate all version selections.
42+
*/
43+
// "implicitlyPreferredVersions": false,
44+
2745
/**
2846
* The "rush check" command can be used to enforce that every project in the repo must specify
2947
* the same SemVer range for a given dependency. However, sometimes exceptions are needed.

0 commit comments

Comments
 (0)