@itwin/build-tools 5.0.0-dev.11 → 5.0.0-dev.111

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,85 @@
1
1
  # Change Log - @itwin/build-tools
2
2
 
3
- This log was last generated on Thu, 14 Nov 2024 18:13:56 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 30 Apr 2025 13:14:48 GMT and should not be manually modified.
4
+
5
+ ## 4.11.1
6
+ Wed, 30 Apr 2025 13:13:21 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.11.0
11
+ Wed, 16 Apr 2025 15:50:28 GMT
12
+
13
+ ### Updates
14
+
15
+ - Bump `typedoc` dependency to a version that supports typescript `5.6`.
16
+ - Deprecate unused --includes flag
17
+ - add temporary fix for typedoc@0.26 issue #2802
18
+ - Bumped `cross-spawn` to `7.0.5`
19
+
20
+ ## 4.10.13
21
+ Thu, 10 Apr 2025 17:47:21 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 4.10.12
26
+ Wed, 02 Apr 2025 19:35:47 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 4.10.11
31
+ Wed, 19 Mar 2025 15:30:39 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 4.10.10
36
+ Tue, 11 Mar 2025 15:25:11 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 4.10.9
41
+ Tue, 11 Mar 2025 05:17:33 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 4.10.8
46
+ Thu, 06 Mar 2025 14:13:37 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 4.10.7
51
+ Tue, 18 Feb 2025 17:27:03 GMT
52
+
53
+ _Version update only_
54
+
55
+ ## 4.10.6
56
+ Fri, 24 Jan 2025 08:02:40 GMT
57
+
58
+ _Version update only_
59
+
60
+ ## 4.10.5
61
+ Tue, 21 Jan 2025 21:56:45 GMT
62
+
63
+ _Version update only_
64
+
65
+ ## 4.10.4
66
+ Mon, 13 Jan 2025 14:06:43 GMT
67
+
68
+ _Version update only_
69
+
70
+ ## 4.10.3
71
+ Mon, 06 Jan 2025 14:00:13 GMT
72
+
73
+ ### Updates
74
+
75
+ - add temporary fix for typedoc@0.26 issue #2802
76
+
77
+ ## 4.10.2
78
+ Thu, 21 Nov 2024 15:22:20 GMT
79
+
80
+ ### Updates
81
+
82
+ - Bumped `cross-spawn` to `7.0.5`
4
83
 
5
84
  ## 4.10.1
6
85
  Thu, 14 Nov 2024 18:11:00 GMT
package/bin/betools.js CHANGED
@@ -48,7 +48,10 @@ yargs.strict(true)
48
48
  },
49
49
  "onlyJson": {
50
50
  describe: "Specify a baseUrl to resolve modules"
51
- }
51
+ },
52
+ "tsconfig": {
53
+ describe: "Specify a path to `tsconfig.json` configuration file used to build the package. Defaults to `./tsconfig.json`"
54
+ },
52
55
  })
53
56
  },
54
57
  (argv) => { docsCommand(argv) })
@@ -145,9 +148,11 @@ function docsCommand(options) {
145
148
  const testExcludeGlobOpt = options.testExcludeGlob ? ["--testExcludeGlob", options.testExcludeGlob] : [];
146
149
  const indexFileOpt = options.tsIndexFile ? ["--tsIndexFile", options.tsIndexFile] : [];
147
150
  const onlyJsonOpt = options.onlyJson ? ["--onlyJson"] : [];
151
+ const tsconfigOpt = options.tsconfig ? ["--tsconfig", options.tsconfig] : [];
148
152
  exec("node", [getScriptPath("docs.js"),
149
153
  ...sourceOpt, ...outOpt, ...jsonOpt, ...baseUrlOpt,
150
- ...excludesOpt, ...excludesGlobOpt, ...testExcludeGlobOpt, ...indexFileOpt, ...onlyJsonOpt]);
154
+ ...excludesOpt, ...excludesGlobOpt, ...testExcludeGlobOpt,
155
+ ...indexFileOpt, ...onlyJsonOpt, ...tsconfigOpt]);
151
156
  }
152
157
 
153
158
  function extractCommand(options) {
@@ -56,6 +56,7 @@ Object.defineProperty(Base, "color", {
56
56
  set: () => { },
57
57
  });
58
58
  class BentleyMochaReporter extends Spec {
59
+ _junitReporter;
59
60
  constructor(_runner, _options) {
60
61
  super(...arguments);
61
62
  this._junitReporter = new MochaJUnitReporter(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "5.0.0-dev.11",
3
+ "version": "5.0.0-dev.111",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,15 +21,15 @@
21
21
  "url": "http://www.bentley.com"
22
22
  },
23
23
  "dependencies": {
24
- "@microsoft/api-extractor": "~7.47.10",
24
+ "@microsoft/api-extractor": "~7.52.3",
25
25
  "chalk": "^3.0.0",
26
- "cpx2": "^3.0.0",
26
+ "cpx2": "^8.0.0",
27
27
  "cross-spawn": "^7.0.5",
28
28
  "fs-extra": "^8.1.0",
29
29
  "glob": "^10.3.12",
30
- "mocha": "^10.2.0",
30
+ "mocha": "^11.1.0",
31
31
  "mocha-junit-reporter": "^2.0.2",
32
- "rimraf": "^3.0.2",
32
+ "rimraf": "^6.0.1",
33
33
  "tree-kill": "^1.2.2",
34
34
  "typedoc": "^0.26.11",
35
35
  "typedoc-plugin-merge-modules": "^6.0.3",
@@ -39,12 +39,12 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@itwin/eslint-plugin": "5.0.0-dev.1",
42
- "@types/node": "~20.9.5",
42
+ "@types/node": "~20.17.0",
43
43
  "eslint": "^9.13.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "tsc 1>&2",
47
- "clean": "rimraf ../../modules .rush/temp/package-deps*.json",
47
+ "clean": "rimraf -g ../../modules .rush/temp/package-deps*.json",
48
48
  "docs": "",
49
49
  "lint": "eslint \"./src/**/*.ts\" 1>&2",
50
50
  "test": "",
package/scripts/docs.js CHANGED
@@ -52,7 +52,9 @@ const readmeOption = (argv.readme === undefined) ? "none" : argv.readme;
52
52
  const options = [
53
53
  "--hideGenerator",
54
54
  "--logLevel",
55
- "Error"
55
+ "Error",
56
+ "--cascadedModifierTags", // workaround for https://github.com/TypeStrong/typedoc/issues/2802
57
+ "@experimental"
56
58
  ];
57
59
 
58
60
  const pluginOptions = [
@@ -64,8 +66,10 @@ if (argv.name) options.push("--name", argv.name);
64
66
 
65
67
  if (argv.theme) options.push("--theme", argv.theme);
66
68
 
69
+ if (argv.tsconfig) options.push("--tsconfig", argv.tsconfig);
70
+
67
71
  const args = [
68
- "--entryPointStrategy", "expand", path.resolve(process.cwd(), source),
72
+ "--entryPointStrategy", "expand", path.resolve(process.cwd(), source).replaceAll("\\", "/"),
69
73
  ...options,
70
74
  ...excludeArray,
71
75
  ...outputOptions,
@@ -80,8 +80,8 @@ fs.readFile(argv.apiSignature, function (error, data) {
80
80
 
81
81
  previousLines.push(match[1]);
82
82
 
83
- // handle deprecated separate since it can be used together with the other release tags
84
- match = line.match(/\s@(deprecated)/);
83
+ // handle deprecated and preview separately since they can be used together with the other release tags
84
+ match = line.match(/\s@(deprecated|preview)/);
85
85
  if (null !== match) {
86
86
  previousLines.push(match[1]);
87
87
  return;
@@ -60,9 +60,13 @@ const config = {
60
60
  mainEntryPointFilePath: `${entryPointFileName}.d.ts`,
61
61
  apiReport: {
62
62
  enabled: true,
63
+ reportFileName: `${entryPointFileName}.api.md`,
63
64
  reportFolder: path.resolve(apiReportFolder),
64
65
  reportTempFolder: path.resolve(apiReportTempFolder),
65
66
  includeForgottenExports: !!includeUnexportedApis,
67
+ tagsToReport: {
68
+ "@preview": true
69
+ },
66
70
  },
67
71
  docModel: {
68
72
  enabled: false
@@ -23,6 +23,7 @@
23
23
  "strict": true,
24
24
  "strictNullChecks": true,
25
25
  "stripInternal": false,
26
- "target": "ES2021"
26
+ "target": "ES2023",
27
+ "lib": ["ES2023", "DOM", "DOM.Iterable", "ESNext.Disposable"]
27
28
  }
28
29
  }