@itwin/build-tools 4.9.0-dev.3 → 4.9.0-dev.4
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.
- package/bin/betools.js +7 -2
- package/package.json +1 -1
- package/scripts/extract-api.js +2 -0
package/bin/betools.js
CHANGED
@@ -88,7 +88,11 @@ yargs.strict(true)
|
|
88
88
|
},
|
89
89
|
"apiSummaryFolder": {
|
90
90
|
describe: "Directory for the API summary. Defaults to `<Rush repository root>/common/api/summary`."
|
91
|
-
}
|
91
|
+
},
|
92
|
+
"includeUnexportedApis": {
|
93
|
+
boolean: true,
|
94
|
+
describe: "If this flag is set, then APIs that are unexported, but still indirectly accessible via exported APIs, will also be included to the API report. Defaults to `false`"
|
95
|
+
},
|
92
96
|
})
|
93
97
|
},
|
94
98
|
(argv) => { extractApiCommand(argv) })
|
@@ -161,7 +165,8 @@ function extractApiCommand(options) {
|
|
161
165
|
const apiReportFolderOpt = options.apiReportFolder ? ["--apiReportFolder", options.apiReportFolder] : [];
|
162
166
|
const apiReportTempFolderOpt = options.apiReportTempFolder ? ["--apiReportTempFolder", options.apiReportTempFolder] : [];
|
163
167
|
const apiSummaryFolderOpt = options.apiSummaryFolder ? ["--apiSummaryFolder", options.apiSummaryFolder] : [];
|
164
|
-
|
168
|
+
const includeUnexportedApisOpt = options.includeUnexportedApis ? ["--includeUnexportedApis"] : [];
|
169
|
+
exec("node", [getScriptPath("extract-api.js"), ...entryOpt, ...ignoreTagsOpt, ...apiReportFolderOpt, ...apiReportTempFolderOpt, ...apiSummaryFolderOpt, ...includeUnexportedApisOpt]);
|
165
170
|
}
|
166
171
|
|
167
172
|
function pseudolocalizeCommand(options) {
|
package/package.json
CHANGED
package/scripts/extract-api.js
CHANGED
@@ -18,6 +18,7 @@ if (argv.entry === undefined) {
|
|
18
18
|
const isCI = (process.env.TF_BUILD);
|
19
19
|
const entryPointFileName = argv.entry;
|
20
20
|
const ignoreMissingTags = argv.ignoreMissingTags;
|
21
|
+
const includeUnexportedApis = argv.includeUnexportedApis;
|
21
22
|
|
22
23
|
// Resolves the root of the Rush repo
|
23
24
|
const resolveRoot = relativePath => {
|
@@ -53,6 +54,7 @@ const config = {
|
|
53
54
|
enabled: true,
|
54
55
|
reportFolder: path.resolve(apiReportFolder),
|
55
56
|
reportTempFolder: path.resolve(apiReportTempFolder),
|
57
|
+
includeForgottenExports: !!includeUnexportedApis,
|
56
58
|
},
|
57
59
|
docModel: {
|
58
60
|
enabled: false
|