@itwin/build-tools 4.9.0-dev.1 → 4.9.0-dev.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "4.9.0-dev.1",
3
+ "version": "4.9.0-dev.3",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,7 +34,7 @@ if (undefined !== argv.gatherFullReport)
34
34
 
35
35
  // create output file
36
36
  const apiSignatureFileName = path.parse(argv.apiSignature).name;
37
- const sigFileName = (apiSignatureFileName.split('.'))[0]
37
+ const sigFileName = apiSignatureFileName.substring(0, apiSignatureFileName.lastIndexOf('.'));
38
38
  const sigFilePath = path.join(argv.outDir, `${shouldGenerateFullReport ? "summary" : sigFileName}.exports.csv`);
39
39
 
40
40
  const outputLines = [];
@@ -43,12 +43,12 @@ if (shouldGenerateFullReport) {
43
43
  outputLines.push("");
44
44
  else {
45
45
  outputLines.push("sep=;");
46
- outputLines.push("Package Name;Release Tag;API Item");
46
+ outputLines.push("Package Name;Release Tag;API Item Type;API Item Name");
47
47
  }
48
48
  } else {
49
49
  fs.createFileSync(sigFilePath);
50
50
  outputLines.push("sep=;");
51
- outputLines.push("Release Tag;API Item");
51
+ outputLines.push("Release Tag;API Item Type;API Item Name");
52
52
  }
53
53
 
54
54
  // Open up the signature file
@@ -60,11 +60,12 @@ fs.readFile(argv.apiSignature, function (error, data) {
60
60
  if (index === arr.length - 1 && line === "") { return; }
61
61
 
62
62
  if (previousLines.length !== 0) {
63
- const matches = line.match(/export \S*\s(.*)(\s{|;)/);
64
- if (null !== matches) {
65
- const split = matches[1].split(/(<|extends|implements)/);
66
- for (const previousLine of previousLines)
67
- outputLines.push(shouldGenerateFullReport ? `${sigFileName};${previousLine};${split[0]}` : `${previousLine};${split[0]}`);
63
+ const matches = line.match(/export.+?(class|interface|type|function|const|enum|namespace) (\w+)/);
64
+ if (matches) {
65
+ for (const previousLine of previousLines) {
66
+ const line = `${previousLine};${matches[1]};${matches[2]}`;
67
+ outputLines.push(shouldGenerateFullReport ? `${sigFileName};${line}` : line);
68
+ }
68
69
  }
69
70
 
70
71
  previousLines = [];