@itwin/build-tools 4.9.0-dev.2 → 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/CHANGELOG.md CHANGED
@@ -1,6 +1,15 @@
1
1
  # Change Log - @itwin/build-tools
2
2
 
3
- This log was last generated on Wed, 31 Jul 2024 13:39:32 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 08 Aug 2024 17:40:25 GMT and should not be manually modified.
4
+
5
+ ## 4.8.0
6
+ Thu, 08 Aug 2024 16:15:37 GMT
7
+
8
+ ### Updates
9
+
10
+ - extract-api-summary: Improve regex so that includes all exports with improved output.
11
+ - Update ThirdPartyNotices.md
12
+ - Update api-extractor to 7.47.
4
13
 
5
14
  ## 4.7.8
6
15
  Wed, 31 Jul 2024 13:38:04 GMT
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
- exec("node", [getScriptPath("extract-api.js"), ...entryOpt, ...ignoreTagsOpt, ...apiReportFolderOpt, ...apiReportTempFolderOpt, ...apiSummaryFolderOpt]);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "4.9.0-dev.2",
3
+ "version": "4.9.0-dev.4",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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