@itwin/build-tools 5.0.0-dev.90 → 5.0.0-dev.93

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 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "5.0.0-dev.90",
3
+ "version": "5.0.0-dev.93",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {
package/scripts/docs.js CHANGED
@@ -66,8 +66,10 @@ if (argv.name) options.push("--name", argv.name);
66
66
 
67
67
  if (argv.theme) options.push("--theme", argv.theme);
68
68
 
69
+ if (argv.tsconfig) options.push("--tsconfig", argv.tsconfig);
70
+
69
71
  const args = [
70
- "--entryPointStrategy", "expand", path.resolve(process.cwd(), source),
72
+ "--entryPointStrategy", "expand", path.resolve(process.cwd(), source).replaceAll("\\", "/"),
71
73
  ...options,
72
74
  ...excludeArray,
73
75
  ...outputOptions,