@microsoft/api-extractor 7.19.2 → 7.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +51 -51
  2. package/dist/tsdoc-metadata.json +1 -1
  3. package/extends/tsdoc-base.json +72 -72
  4. package/lib/aedoc/PackageDocComment.js.map +1 -1
  5. package/lib/analyzer/AstDeclaration.js.map +1 -1
  6. package/lib/analyzer/AstEntity.js.map +1 -1
  7. package/lib/analyzer/AstImport.js.map +1 -1
  8. package/lib/analyzer/AstModule.js.map +1 -1
  9. package/lib/analyzer/AstNamespaceImport.js.map +1 -1
  10. package/lib/analyzer/AstReferenceResolver.js.map +1 -1
  11. package/lib/analyzer/AstSymbol.js.map +1 -1
  12. package/lib/analyzer/AstSymbolTable.js.map +1 -1
  13. package/lib/analyzer/ExportAnalyzer.js.map +1 -1
  14. package/lib/analyzer/PackageMetadataManager.js.map +1 -1
  15. package/lib/analyzer/SourceFileLocationFormatter.js.map +1 -1
  16. package/lib/analyzer/Span.js.map +1 -1
  17. package/lib/analyzer/SyntaxHelpers.js.map +1 -1
  18. package/lib/analyzer/TypeScriptHelpers.js.map +1 -1
  19. package/lib/analyzer/TypeScriptInternals.js.map +1 -1
  20. package/lib/api/CompilerState.js.map +1 -1
  21. package/lib/api/ConsoleMessageId.js.map +1 -1
  22. package/lib/api/Extractor.js.map +1 -1
  23. package/lib/api/ExtractorConfig.js.map +1 -1
  24. package/lib/api/ExtractorLogLevel.js.map +1 -1
  25. package/lib/api/ExtractorMessage.js.map +1 -1
  26. package/lib/api/ExtractorMessageId.js.map +1 -1
  27. package/lib/api/IConfigFile.js.map +1 -1
  28. package/lib/cli/ApiExtractorCommandLine.js.map +1 -1
  29. package/lib/cli/InitAction.js.map +1 -1
  30. package/lib/cli/RunAction.js.map +1 -1
  31. package/lib/collector/ApiItemMetadata.js.map +1 -1
  32. package/lib/collector/Collector.js.map +1 -1
  33. package/lib/collector/CollectorEntity.js.map +1 -1
  34. package/lib/collector/DeclarationMetadata.js.map +1 -1
  35. package/lib/collector/MessageRouter.js.map +1 -1
  36. package/lib/collector/SourceMapper.js.map +1 -1
  37. package/lib/collector/SymbolMetadata.js.map +1 -1
  38. package/lib/collector/VisitorState.js.map +1 -1
  39. package/lib/collector/WorkingPackage.js.map +1 -1
  40. package/lib/enhancers/DocCommentEnhancer.js.map +1 -1
  41. package/lib/enhancers/ValidationEnhancer.js.map +1 -1
  42. package/lib/generators/ApiModelGenerator.js.map +1 -1
  43. package/lib/generators/ApiReportGenerator.js.map +1 -1
  44. package/lib/generators/DeclarationReferenceGenerator.js.map +1 -1
  45. package/lib/generators/DtsEmitHelpers.js.map +1 -1
  46. package/lib/generators/DtsRollupGenerator.js.map +1 -1
  47. package/lib/generators/ExcerptBuilder.js.map +1 -1
  48. package/lib/generators/IndentedWriter.js.map +1 -1
  49. package/lib/index.js.map +1 -1
  50. package/lib/schemas/api-extractor-defaults.json +84 -84
  51. package/lib/schemas/api-extractor-template.json +364 -364
  52. package/lib/schemas/api-extractor.schema.json +205 -205
  53. package/lib/start.js.map +1 -1
  54. package/package.json +63 -60
  55. package/CHANGELOG.json +0 -5632
  56. package/CHANGELOG.md +0 -2285
@@ -1,205 +1,205 @@
1
- {
2
- "title": "API Extractor Configuration",
3
- "description": "Describes how the API Extractor tool will process a project.",
4
- "type": "object",
5
- "properties": {
6
- "$schema": {
7
- "description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
8
- "type": "string"
9
- },
10
-
11
- "extends": {
12
- "description": "Optionally specifies another JSON config file that this file extends from. This provides a way for standard settings to be shared across multiple projects.",
13
- "type": "string"
14
- },
15
-
16
- "projectFolder": {
17
- "description": "Determines the \"<projectFolder>\" token that can be used with other config file settings. The project folder typically contains the tsconfig.json and package.json config files, but the path is user-defined. The path is resolved relative to the folder of the config file that contains the setting. The default value for \"projectFolder\" is the token \"<lookup>\", which means the folder is determined using the following heuristics:\n\nIf the config/rig.json system is used (as defined by @rushstack/rig-package), then the \"<lookup>\" value will be the package folder that referenced the rig.\n\nOtherwise, the \"<lookup>\" value is determined by traversing parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error will be reported.",
18
- "type": "string"
19
- },
20
-
21
- "mainEntryPointFilePath": {
22
- "description": "Specifies the .d.ts file to be used as the starting point for analysis. API Extractor analyzes the symbols exported by this module. The file extension must be \".d.ts\" and not \".ts\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
23
- "type": "string"
24
- },
25
-
26
- "bundledPackages": {
27
- "description": "A list of NPM package names whose exports should be treated as part of this package.",
28
- "type": "array",
29
- "items": {
30
- "type": "string"
31
- }
32
- },
33
-
34
- "compiler": {
35
- "description": "Determines how the TypeScript compiler engine will be invoked by API Extractor.",
36
- "type": "object",
37
- "properties": {
38
- "tsconfigFilePath": {
39
- "description": "Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\". Note: This setting will be ignored if \"overrideTsconfig\" is used.",
40
- "type": "string"
41
- },
42
- "overrideTsconfig": {
43
- "description": "Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. The object must conform to the TypeScript tsconfig schema: http://json.schemastore.org/tsconfig If omitted, then the tsconfig.json file will be read from the \"projectFolder\".",
44
- "type": "object"
45
- },
46
- "skipLibCheck": {
47
- "description": "This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck.",
48
- "type": "boolean"
49
- }
50
- },
51
- "additionalProperties": false
52
- },
53
-
54
- "apiReport": {
55
- "description": "Configures how the API report file (*.api.md) will be generated.",
56
- "type": "object",
57
- "properties": {
58
- "enabled": {
59
- "description": "Whether to generate an API report.",
60
- "type": "boolean"
61
- },
62
-
63
- "reportFileName": {
64
- "description": "The filename for the API report files. It will be combined with \"reportFolder\" or \"reportTempFolder\" to produce a full file path. The file extension should be \".api.md\", and the string should not contain a path separator such as \"\\\" or \"/\".",
65
- "type": "string"
66
- },
67
-
68
- "reportFolder": {
69
- "description": "Specifies the folder where the API report file is written. The file name portion is determined by the \"reportFileName\" setting. The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, e.g. for an API review. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
70
- "type": "string"
71
- },
72
-
73
- "reportTempFolder": {
74
- "description": "Specifies the folder where the temporary report file is written. The file name portion is determined by the \"reportFileName\" setting. After the temporary file is written to disk, it is compared with the file in the \"reportFolder\". If they are different, a production build will fail. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
75
- "type": "string"
76
- }
77
- },
78
- "required": ["enabled"],
79
- "additionalProperties": false
80
- },
81
-
82
- "docModel": {
83
- "description": "Configures how the doc model file (*.api.json) will be generated.",
84
- "type": "object",
85
- "properties": {
86
- "enabled": {
87
- "description": "Whether to generate doc model file.",
88
- "type": "boolean"
89
- },
90
- "apiJsonFilePath": {
91
- "description": "The output path for the doc model file. The file extension should be \".api.json\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
92
- "type": "string"
93
- }
94
- },
95
- "required": ["enabled"],
96
- "additionalProperties": false
97
- },
98
-
99
- "dtsRollup": {
100
- "description": "Configures how the .d.ts rollup file will be generated.",
101
- "type": "object",
102
- "properties": {
103
- "enabled": {
104
- "description": "Whether to generate the .d.ts rollup file.",
105
- "type": "boolean"
106
- },
107
- "untrimmedFilePath": {
108
- "description": "Specifies the output path for a .d.ts rollup file to be generated without any trimming. This file will include all declarations that are exported by the main entry point. If the path is an empty string, then this file will not be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
109
- "type": "string"
110
- },
111
- "betaTrimmedFilePath": {
112
- "description": "Specifies the output path for a .d.ts rollup file to be generated with trimming for a \"beta\" release. This file will include only declarations that are marked as \"@public\" or \"@beta\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
113
- "type": "string"
114
- },
115
- "publicTrimmedFilePath": {
116
- "description": "Specifies the output path for a .d.ts rollup file to be generated with trimming for a \"public\" release. This file will include only declarations that are marked as \"@public\". If the path is an empty string, then this file will not be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
117
- "type": "string"
118
- },
119
- "omitTrimmingComments": {
120
- "description": "When a declaration is trimmed, by default it will be replaced by a code comment such as \"Excluded from this release type: exampleMember\". Set \"omitTrimmingComments\" to true to remove the declaration completely.",
121
- "type": "boolean"
122
- }
123
- },
124
- "required": ["enabled"],
125
- "additionalProperties": false
126
- },
127
-
128
- "tsdocMetadata": {
129
- "description": "Configures how the tsdoc-metadata.json file will be generated.",
130
- "type": "object",
131
- "properties": {
132
- "enabled": {
133
- "description": "Whether to generate the tsdoc-metadata.json file.",
134
- "type": "boolean"
135
- },
136
- "tsdocMetadataFilePath": {
137
- "description": "Specifies where the TSDoc metadata file should be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\". The default value is \"<lookup>\", which causes the path to be automatically inferred from the \"tsdocMetadata\", \"typings\" or \"main\" fields of the project's package.json. If none of these fields are set, the lookup falls back to \"tsdoc-metadata.json\" in the package folder.",
138
- "type": "string"
139
- }
140
- },
141
- "additionalProperties": false
142
- },
143
-
144
- "newlineKind": {
145
- "description": "Specifies what type of newlines API Extractor should use when writing output files. By default, the output files will be written with Windows-style newlines. To use POSIX-style newlines, specify \"lf\" instead. To use the OS's default newline kind, specify \"os\".",
146
- "type": "string",
147
- "enum": ["crlf", "lf", "os"],
148
- "default": "crlf"
149
- },
150
-
151
- "messages": {
152
- "description": "Configures how API Extractor reports error and warning messages produced during analysis.",
153
- "type": "object",
154
- "properties": {
155
- "compilerMessageReporting": {
156
- "description": "Configures handling of diagnostic messages generating the TypeScript compiler while analyzing the input .d.ts files.",
157
- "$ref": "#/definitions/extractorMessageReportingTable"
158
- },
159
- "extractorMessageReporting": {
160
- "description": "Configures handling of messages reported by API Extractor during its analysis.",
161
- "$ref": "#/definitions/extractorMessageReportingTable"
162
- },
163
- "tsdocMessageReporting": {
164
- "description": "Configures handling of messages reported by the TSDoc parser when analyzing code comments.",
165
- "$ref": "#/definitions/extractorMessageReportingTable"
166
- }
167
- },
168
- "additionalProperties": false
169
- },
170
-
171
- "testMode": {
172
- "description": "Set to true invoking API Extractor's test harness. When \"testMode\" is true, the \"toolVersion\" field in the .api.json file is assigned an empty string to prevent spurious diffs in output files tracked for tests.",
173
- "type": "boolean"
174
- }
175
- },
176
- "required": ["mainEntryPointFilePath"],
177
- "additionalProperties": false,
178
-
179
- "definitions": {
180
- "extractorMessageReportingTable": {
181
- "type": "object",
182
- "description": "Specifies a table of reporting rules for different message identifiers, and also the default rule used for identifiers that do not appear in the table. The key is a message identifier for the associated type of message, or \"default\" to specify the default policy. For example, the key might be \"TS2551\" (a compiler message), \"tsdoc-link-tag-unescaped-text\" (a TSDOc message), or \"ae-extra-release-tag\" (a message related to the API Extractor analysis).",
183
- "patternProperties": {
184
- ".+": {
185
- "type": "object",
186
- "description": "Configures reporting for a given message identifier.",
187
- "properties": {
188
- "logLevel": {
189
- "type": "string",
190
- "description": "Specifies whether the message should be written to the the tool's output log. Note that the \"addToApiReportFile\" property may supersede this option.",
191
- "enum": ["error", "warning", "none"]
192
- },
193
- "addToApiReportFile": {
194
- "type": "boolean",
195
- "description": "If API Extractor is configured to write an API review file (.api.md), then the message will be written inside that file. If the API review file is NOT being written, then the message is instead logged according to the \"logLevel\" option."
196
- }
197
- },
198
- "additionalProperties": false,
199
- "required": ["logLevel"]
200
- }
201
- },
202
- "additionalProperties": false
203
- }
204
- }
205
- }
1
+ {
2
+ "title": "API Extractor Configuration",
3
+ "description": "Describes how the API Extractor tool will process a project.",
4
+ "type": "object",
5
+ "properties": {
6
+ "$schema": {
7
+ "description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
8
+ "type": "string"
9
+ },
10
+
11
+ "extends": {
12
+ "description": "Optionally specifies another JSON config file that this file extends from. This provides a way for standard settings to be shared across multiple projects.",
13
+ "type": "string"
14
+ },
15
+
16
+ "projectFolder": {
17
+ "description": "Determines the \"<projectFolder>\" token that can be used with other config file settings. The project folder typically contains the tsconfig.json and package.json config files, but the path is user-defined. The path is resolved relative to the folder of the config file that contains the setting. The default value for \"projectFolder\" is the token \"<lookup>\", which means the folder is determined using the following heuristics:\n\nIf the config/rig.json system is used (as defined by @rushstack/rig-package), then the \"<lookup>\" value will be the package folder that referenced the rig.\n\nOtherwise, the \"<lookup>\" value is determined by traversing parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error will be reported.",
18
+ "type": "string"
19
+ },
20
+
21
+ "mainEntryPointFilePath": {
22
+ "description": "Specifies the .d.ts file to be used as the starting point for analysis. API Extractor analyzes the symbols exported by this module. The file extension must be \".d.ts\" and not \".ts\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
23
+ "type": "string"
24
+ },
25
+
26
+ "bundledPackages": {
27
+ "description": "A list of NPM package names whose exports should be treated as part of this package.",
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ }
32
+ },
33
+
34
+ "compiler": {
35
+ "description": "Determines how the TypeScript compiler engine will be invoked by API Extractor.",
36
+ "type": "object",
37
+ "properties": {
38
+ "tsconfigFilePath": {
39
+ "description": "Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\". Note: This setting will be ignored if \"overrideTsconfig\" is used.",
40
+ "type": "string"
41
+ },
42
+ "overrideTsconfig": {
43
+ "description": "Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. The object must conform to the TypeScript tsconfig schema: http://json.schemastore.org/tsconfig If omitted, then the tsconfig.json file will be read from the \"projectFolder\".",
44
+ "type": "object"
45
+ },
46
+ "skipLibCheck": {
47
+ "description": "This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck.",
48
+ "type": "boolean"
49
+ }
50
+ },
51
+ "additionalProperties": false
52
+ },
53
+
54
+ "apiReport": {
55
+ "description": "Configures how the API report file (*.api.md) will be generated.",
56
+ "type": "object",
57
+ "properties": {
58
+ "enabled": {
59
+ "description": "Whether to generate an API report.",
60
+ "type": "boolean"
61
+ },
62
+
63
+ "reportFileName": {
64
+ "description": "The filename for the API report files. It will be combined with \"reportFolder\" or \"reportTempFolder\" to produce a full file path. The file extension should be \".api.md\", and the string should not contain a path separator such as \"\\\" or \"/\".",
65
+ "type": "string"
66
+ },
67
+
68
+ "reportFolder": {
69
+ "description": "Specifies the folder where the API report file is written. The file name portion is determined by the \"reportFileName\" setting. The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, e.g. for an API review. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
70
+ "type": "string"
71
+ },
72
+
73
+ "reportTempFolder": {
74
+ "description": "Specifies the folder where the temporary report file is written. The file name portion is determined by the \"reportFileName\" setting. After the temporary file is written to disk, it is compared with the file in the \"reportFolder\". If they are different, a production build will fail. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
75
+ "type": "string"
76
+ }
77
+ },
78
+ "required": ["enabled"],
79
+ "additionalProperties": false
80
+ },
81
+
82
+ "docModel": {
83
+ "description": "Configures how the doc model file (*.api.json) will be generated.",
84
+ "type": "object",
85
+ "properties": {
86
+ "enabled": {
87
+ "description": "Whether to generate doc model file.",
88
+ "type": "boolean"
89
+ },
90
+ "apiJsonFilePath": {
91
+ "description": "The output path for the doc model file. The file extension should be \".api.json\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
92
+ "type": "string"
93
+ }
94
+ },
95
+ "required": ["enabled"],
96
+ "additionalProperties": false
97
+ },
98
+
99
+ "dtsRollup": {
100
+ "description": "Configures how the .d.ts rollup file will be generated.",
101
+ "type": "object",
102
+ "properties": {
103
+ "enabled": {
104
+ "description": "Whether to generate the .d.ts rollup file.",
105
+ "type": "boolean"
106
+ },
107
+ "untrimmedFilePath": {
108
+ "description": "Specifies the output path for a .d.ts rollup file to be generated without any trimming. This file will include all declarations that are exported by the main entry point. If the path is an empty string, then this file will not be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
109
+ "type": "string"
110
+ },
111
+ "betaTrimmedFilePath": {
112
+ "description": "Specifies the output path for a .d.ts rollup file to be generated with trimming for a \"beta\" release. This file will include only declarations that are marked as \"@public\" or \"@beta\". The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
113
+ "type": "string"
114
+ },
115
+ "publicTrimmedFilePath": {
116
+ "description": "Specifies the output path for a .d.ts rollup file to be generated with trimming for a \"public\" release. This file will include only declarations that are marked as \"@public\". If the path is an empty string, then this file will not be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\".",
117
+ "type": "string"
118
+ },
119
+ "omitTrimmingComments": {
120
+ "description": "When a declaration is trimmed, by default it will be replaced by a code comment such as \"Excluded from this release type: exampleMember\". Set \"omitTrimmingComments\" to true to remove the declaration completely.",
121
+ "type": "boolean"
122
+ }
123
+ },
124
+ "required": ["enabled"],
125
+ "additionalProperties": false
126
+ },
127
+
128
+ "tsdocMetadata": {
129
+ "description": "Configures how the tsdoc-metadata.json file will be generated.",
130
+ "type": "object",
131
+ "properties": {
132
+ "enabled": {
133
+ "description": "Whether to generate the tsdoc-metadata.json file.",
134
+ "type": "boolean"
135
+ },
136
+ "tsdocMetadataFilePath": {
137
+ "description": "Specifies where the TSDoc metadata file should be written. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\". The default value is \"<lookup>\", which causes the path to be automatically inferred from the \"tsdocMetadata\", \"typings\" or \"main\" fields of the project's package.json. If none of these fields are set, the lookup falls back to \"tsdoc-metadata.json\" in the package folder.",
138
+ "type": "string"
139
+ }
140
+ },
141
+ "additionalProperties": false
142
+ },
143
+
144
+ "newlineKind": {
145
+ "description": "Specifies what type of newlines API Extractor should use when writing output files. By default, the output files will be written with Windows-style newlines. To use POSIX-style newlines, specify \"lf\" instead. To use the OS's default newline kind, specify \"os\".",
146
+ "type": "string",
147
+ "enum": ["crlf", "lf", "os"],
148
+ "default": "crlf"
149
+ },
150
+
151
+ "messages": {
152
+ "description": "Configures how API Extractor reports error and warning messages produced during analysis.",
153
+ "type": "object",
154
+ "properties": {
155
+ "compilerMessageReporting": {
156
+ "description": "Configures handling of diagnostic messages generating the TypeScript compiler while analyzing the input .d.ts files.",
157
+ "$ref": "#/definitions/extractorMessageReportingTable"
158
+ },
159
+ "extractorMessageReporting": {
160
+ "description": "Configures handling of messages reported by API Extractor during its analysis.",
161
+ "$ref": "#/definitions/extractorMessageReportingTable"
162
+ },
163
+ "tsdocMessageReporting": {
164
+ "description": "Configures handling of messages reported by the TSDoc parser when analyzing code comments.",
165
+ "$ref": "#/definitions/extractorMessageReportingTable"
166
+ }
167
+ },
168
+ "additionalProperties": false
169
+ },
170
+
171
+ "testMode": {
172
+ "description": "Set to true invoking API Extractor's test harness. When \"testMode\" is true, the \"toolVersion\" field in the .api.json file is assigned an empty string to prevent spurious diffs in output files tracked for tests.",
173
+ "type": "boolean"
174
+ }
175
+ },
176
+ "required": ["mainEntryPointFilePath"],
177
+ "additionalProperties": false,
178
+
179
+ "definitions": {
180
+ "extractorMessageReportingTable": {
181
+ "type": "object",
182
+ "description": "Specifies a table of reporting rules for different message identifiers, and also the default rule used for identifiers that do not appear in the table. The key is a message identifier for the associated type of message, or \"default\" to specify the default policy. For example, the key might be \"TS2551\" (a compiler message), \"tsdoc-link-tag-unescaped-text\" (a TSDOc message), or \"ae-extra-release-tag\" (a message related to the API Extractor analysis).",
183
+ "patternProperties": {
184
+ ".+": {
185
+ "type": "object",
186
+ "description": "Configures reporting for a given message identifier.",
187
+ "properties": {
188
+ "logLevel": {
189
+ "type": "string",
190
+ "description": "Specifies whether the message should be written to the the tool's output log. Note that the \"addToApiReportFile\" property may supersede this option.",
191
+ "enum": ["error", "warning", "none"]
192
+ },
193
+ "addToApiReportFile": {
194
+ "type": "boolean",
195
+ "description": "If API Extractor is configured to write an API review file (.api.md), then the message will be written inside that file. If the API review file is NOT being written, then the message is instead logged according to the \"logLevel\" option."
196
+ }
197
+ },
198
+ "additionalProperties": false,
199
+ "required": ["logLevel"]
200
+ }
201
+ },
202
+ "additionalProperties": false
203
+ }
204
+ }
205
+ }
package/lib/start.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,uCAAyB;AACzB,oDAA4B;AAE5B,2EAAwE;AACxE,+CAA4C;AAE5C,OAAO,CAAC,GAAG,CACT,EAAE,CAAC,GAAG;IACJ,gBAAM,CAAC,IAAI,CAAC,iBAAiB,qBAAS,CAAC,OAAO,GAAG,GAAG,gBAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAC7G,CAAC;AAEF,MAAM,MAAM,GAA4B,IAAI,iDAAuB,EAAE,CAAC;AAEtE,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC/B,OAAO,CAAC,KAAK,CAAC,gBAAM,CAAC,GAAG,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\r\n// See LICENSE in the project root for license information.\r\n\r\nimport * as os from 'os';\r\nimport colors from 'colors';\r\n\r\nimport { ApiExtractorCommandLine } from './cli/ApiExtractorCommandLine';\r\nimport { Extractor } from './api/Extractor';\r\n\r\nconsole.log(\r\n os.EOL +\r\n colors.bold(`api-extractor ${Extractor.version} ` + colors.cyan(' - https://api-extractor.com/') + os.EOL)\r\n);\r\n\r\nconst parser: ApiExtractorCommandLine = new ApiExtractorCommandLine();\r\n\r\nparser.execute().catch((error) => {\r\n console.error(colors.red(`An unexpected error occurred: ${error}`));\r\n process.exit(1);\r\n});\r\n"]}
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,uCAAyB;AACzB,oDAA4B;AAE5B,2EAAwE;AACxE,+CAA4C;AAE5C,OAAO,CAAC,GAAG,CACT,EAAE,CAAC,GAAG;IACJ,gBAAM,CAAC,IAAI,CAAC,iBAAiB,qBAAS,CAAC,OAAO,GAAG,GAAG,gBAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAC7G,CAAC;AAEF,MAAM,MAAM,GAA4B,IAAI,iDAAuB,EAAE,CAAC;AAEtE,MAAM,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC/B,OAAO,CAAC,KAAK,CAAC,gBAAM,CAAC,GAAG,CAAC,iCAAiC,KAAK,EAAE,CAAC,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as os from 'os';\nimport colors from 'colors';\n\nimport { ApiExtractorCommandLine } from './cli/ApiExtractorCommandLine';\nimport { Extractor } from './api/Extractor';\n\nconsole.log(\n os.EOL +\n colors.bold(`api-extractor ${Extractor.version} ` + colors.cyan(' - https://api-extractor.com/') + os.EOL)\n);\n\nconst parser: ApiExtractorCommandLine = new ApiExtractorCommandLine();\n\nparser.execute().catch((error) => {\n console.error(colors.red(`An unexpected error occurred: ${error}`));\n process.exit(1);\n});\n"]}
package/package.json CHANGED
@@ -1,61 +1,64 @@
1
1
  {
2
- "name": "@microsoft/api-extractor",
3
- "version": "7.19.2",
4
- "description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups",
5
- "keywords": [
6
- "typescript",
7
- "API",
8
- "JSDoc",
9
- "AEDoc",
10
- "TSDoc",
11
- "generate",
12
- "documentation",
13
- "declaration",
14
- "dts",
15
- ".d.ts",
16
- "rollup",
17
- "bundle",
18
- "compiler",
19
- "alpha",
20
- "beta"
21
- ],
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/microsoft/rushstack.git",
25
- "directory": "apps/api-extractor"
26
- },
27
- "homepage": "https://api-extractor.com",
28
- "main": "lib/index.js",
29
- "typings": "dist/rollup.d.ts",
30
- "bin": {
31
- "api-extractor": "./bin/api-extractor"
32
- },
33
- "license": "MIT",
34
- "dependencies": {
35
- "@microsoft/api-extractor-model": "7.15.1",
36
- "@microsoft/tsdoc": "0.13.2",
37
- "@microsoft/tsdoc-config": "~0.15.2",
38
- "@rushstack/node-core-library": "3.44.2",
39
- "@rushstack/rig-package": "0.3.6",
40
- "@rushstack/ts-command-line": "4.10.5",
41
- "colors": "~1.2.1",
42
- "lodash": "~4.17.15",
43
- "resolve": "~1.17.0",
44
- "semver": "~7.3.0",
45
- "source-map": "~0.6.1",
46
- "typescript": "~4.5.2"
47
- },
48
- "devDependencies": {
49
- "@rushstack/eslint-config": "2.5.0",
50
- "@rushstack/heft": "0.43.0",
51
- "@rushstack/heft-node-rig": "1.4.1",
52
- "@types/heft-jest": "1.0.1",
53
- "@types/lodash": "4.14.116",
54
- "@types/node": "12.20.24",
55
- "@types/resolve": "1.17.1",
56
- "@types/semver": "7.3.5"
57
- },
58
- "scripts": {
59
- "build": "heft test --clean"
60
- }
61
- }
2
+ "name": "@microsoft/api-extractor",
3
+ "version": "7.19.5",
4
+ "description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups",
5
+ "keywords": [
6
+ "typescript",
7
+ "API",
8
+ "JSDoc",
9
+ "AEDoc",
10
+ "TSDoc",
11
+ "generate",
12
+ "documentation",
13
+ "declaration",
14
+ "dts",
15
+ ".d.ts",
16
+ "rollup",
17
+ "bundle",
18
+ "compiler",
19
+ "alpha",
20
+ "beta"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/microsoft/rushstack.git",
25
+ "directory": "apps/api-extractor"
26
+ },
27
+ "homepage": "https://api-extractor.com",
28
+ "main": "lib/index.js",
29
+ "typings": "dist/rollup.d.ts",
30
+ "bin": {
31
+ "api-extractor": "./bin/api-extractor"
32
+ },
33
+ "license": "MIT",
34
+ "dependencies": {
35
+ "@microsoft/api-extractor-model": "7.15.4",
36
+ "@microsoft/tsdoc": "0.13.2",
37
+ "@microsoft/tsdoc-config": "~0.15.2",
38
+ "@rushstack/node-core-library": "3.45.1",
39
+ "@rushstack/rig-package": "0.3.8",
40
+ "@rushstack/ts-command-line": "4.10.7",
41
+ "colors": "~1.2.1",
42
+ "lodash": "~4.17.15",
43
+ "resolve": "~1.17.0",
44
+ "semver": "~7.3.0",
45
+ "source-map": "~0.6.1",
46
+ "typescript": "~4.5.2"
47
+ },
48
+ "devDependencies": {
49
+ "@rushstack/eslint-config": "2.5.2",
50
+ "@rushstack/heft": "0.44.2",
51
+ "@rushstack/heft-node-rig": "1.7.1",
52
+ "@types/heft-jest": "1.0.1",
53
+ "@types/lodash": "4.14.116",
54
+ "@types/node": "12.20.24",
55
+ "@types/resolve": "1.17.1",
56
+ "@types/semver": "7.3.5"
57
+ },
58
+ "scripts": {
59
+ "build": "heft build --clean",
60
+ "_phase:build": "heft build --clean",
61
+ "_phase:test": "heft test --no-build"
62
+ },
63
+ "readme": "# @microsoft/api-extractor\n\n\n![API Extractor](https://github.com/microsoft/rushstack/raw/master/common/wiki-images/api-extractor-title.png?raw=true)\n<br />\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; https://api-extractor.com/\n\n<!-- ------------------------------------------------------------------ -->\n<!-- Text below this line should stay in sync with the web site content -->\n<!-- ------------------------------------------------------------------ -->\n\n**API Extractor** helps you build better [TypeScript](https://www.typescriptlang.org/) library packages. Suppose for example that your company has published an NPM package called \"**awesome-widgets**\" that exports many classes and interfaces. As developers start to depend on your library, you may encounter issues such as...\n\n- **Accidental breaks:** People keep reporting that their code won't compile after a supposedly \"minor\" update. To address this, you boldly propose that every **awesome-widgets** pull request must be approved by an experienced developer from your team. But that proves unrealistic -- nobody has time to look at every single PR! What you really need is a way to detect PRs that change API contracts, and flag them for review. That would focus attention in the right place... but how to do that?\n\n- **Missing exports:** Suppose the **awesome-widgets** package exports an API function `AwesomeButton.draw()` that requires a parameter of type `DrawStyle`, but you forgot to export this enum. Things seem fine at first, but when a developer tries to call that function, they discover that there's no way to specify the `DrawStyle`. How to avoid these oversights?\n\n- **Accidental exports:** You meant for your `DrawHelper` class to be kept internal, but one day you realize it's being exported. When you try to remove it, consumers complain that they're using it. How do we avoid this in the future?\n\n- **Alpha/Beta graduation:** You want to release previews of new APIs that are not ready for prime time yet. But if you did a major SemVer bump every time these definitions evolve, the villagers would be after you with torches and pitchforks! A better approach is to designate certain classes/members as **alpha** quality, then promote them to **beta** and finally to **public** as they mature. But how to indicate this to your consumers? (And how to detect scoping mistakes? A **public** function should never return a **beta** result.)\n\n- **\\*.d.ts rollup:** You webpacked your library into a nice **\\*.js** bundle file -- so why ship your typings as a messy tree of **lib/\\*.d.ts** files full of private definitions? Can't we consolidate them into a tidy **\\*.d.ts** rollup file? And if you publish internal/beta/public releases, each release type should get its own **\\*.d.ts** file with appropriate trimming. Developers building a production project don't want to see a bunch of **internal** and **beta** members in their VS Code IntelliSense!\n\n- **Online documentation:** You have faithfully annotated each TypeScript member with nice [TSDoc](https://github.com/microsoft/tsdoc) descriptions. Now that your library has shipped, it's time to set up [a nicely formatted](https://docs.microsoft.com/en-us/javascript/api/sp-http) API reference. What tool to use?\n\n**API Extractor** provides an integrated, professional-quality solution for all these problems. It is invoked at build time by your toolchain and leverages the TypeScript compiler engine to:\n\n- Detect a project's exported API surface\n- Capture the contracts in a concise report designed to facilitate review\n- Warn about common mistakes (e.g. missing exports, inconsistent visibility, etc.)\n- Generate \\*.d.ts rollups with trimming according to release type\n- Output API documentation in a portable format that's easy to integrate with your content pipeline\n\nBest of all, **API Extractor** is free and open source. Join the community and create a pull request!\n\n<!-- ------------------------------------------------------------------ -->\n<!-- Text above this line should stay in sync with the web site content -->\n<!-- ------------------------------------------------------------------ -->\n\n## Getting Started\n\nFor more details and support resources, please visit: https://api-extractor.com/\n\n## Links\n\n- [CHANGELOG.md](\n https://github.com/microsoft/rushstack/blob/master/apps/api-extractor/CHANGELOG.md) - Find\n out what's new in the latest version\n- [API Reference](https://rushstack.io/pages/api/api-extractor/)\n\nAPI Extractor is part of the [Rush Stack](https://rushstack.io/) family of projects.\n"
64
+ }