@itwin/build-tools 4.1.0-dev.3 → 4.1.0-dev.30

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,27 @@
1
1
  # Change Log - @itwin/build-tools
2
2
 
3
- This log was last generated on Tue, 25 Apr 2023 17:50:35 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 22 May 2023 15:34:14 GMT and should not be manually modified.
4
+
5
+ ## 4.0.0
6
+ Mon, 22 May 2023 15:34:14 GMT
7
+
8
+ ### Updates
9
+
10
+ - typescript 5 compatibility
11
+ - Support non-rush repositories by allowing to specify output file locations.
12
+ - Update to eslint@8
13
+ - Fixed 'betools docs' script to set 'packageRoot' to correct relative path from root to package source.
14
+ - Upgrade TypeScript compile target to es2021.
15
+
16
+ ## 3.7.6
17
+ Mon, 15 May 2023 18:23:40 GMT
18
+
19
+ _Version update only_
20
+
21
+ ## 3.7.5
22
+ Thu, 04 May 2023 19:43:18 GMT
23
+
24
+ _Version update only_
4
25
 
5
26
  ## 3.7.4
6
27
  Tue, 25 Apr 2023 17:50:35 GMT
package/bin/betools.js CHANGED
@@ -128,7 +128,7 @@ function testCommand(options) {
128
128
  }
129
129
 
130
130
  function getScriptPath(name) {
131
- return `"${path.resolve(__dirname, path.join("..", "scripts", name))}"`;
131
+ return path.resolve(__dirname, path.join("..", "scripts", name));
132
132
  }
133
133
 
134
134
  function docsCommand(options) {
@@ -142,9 +142,9 @@ function docsCommand(options) {
142
142
  const testExcludeGlobOpt = options.testExcludeGlob ? ["--testExcludeGlob", options.testExcludeGlob] : [];
143
143
  const indexFileOpt = options.tsIndexFile ? ["--tsIndexFile", options.tsIndexFile] : [];
144
144
  const onlyJsonOpt = options.onlyJson ? ["--onlyJson"] : [];
145
- exec(["node", getScriptPath("docs.js"),
146
- ...sourceOpt, ...outOpt, ...jsonOpt, ...baseUrlOpt, ...includesOpt,
147
- ...excludesOpt, ...excludesGlobOpt, ...testExcludeGlobOpt, ...indexFileOpt, ...onlyJsonOpt]);
145
+ exec("node", [getScriptPath("docs.js"),
146
+ ...sourceOpt, ...outOpt, ...jsonOpt, ...baseUrlOpt, ...includesOpt,
147
+ ...excludesOpt, ...excludesGlobOpt, ...testExcludeGlobOpt, ...indexFileOpt, ...onlyJsonOpt]);
148
148
  }
149
149
 
150
150
  function extractCommand(options) {
@@ -152,7 +152,7 @@ function extractCommand(options) {
152
152
  const outOpt = options.out ? ["--out", options.out] : [];
153
153
  const fileExt = options.fileExt ? ["--fileExt", options.fileExt] : [];
154
154
  const recursive = options.recursive ? ["--recursive"] : [];
155
- exec(["node", getScriptPath("extract.js"), ...extractOpt, ...outOpt, ...fileExt, ...recursive]);
155
+ exec("node", [getScriptPath("extract.js"), ...extractOpt, ...outOpt, ...fileExt, ...recursive]);
156
156
  }
157
157
 
158
158
  function extractApiCommand(options) {
@@ -161,27 +161,27 @@ function extractApiCommand(options) {
161
161
  const apiReportFolderOpt = options.apiReportFolder ? ["--apiReportFolder", options.apiReportFolder] : [];
162
162
  const apiReportTempFolderOpt = options.apiReportTempFolder ? ["--apiReportTempFolder", options.apiReportTempFolder] : [];
163
163
  const apiSummaryFolderOpt = options.apiSummaryFolder ? ["--apiSummaryFolder", options.apiSummaryFolder] : [];
164
- exec(["node", getScriptPath("extract-api.js"), ...entryOpt, ...ignoreTagsOpt, ...apiReportFolderOpt, ...apiReportTempFolderOpt, ...apiSummaryFolderOpt]);
164
+ exec("node", [getScriptPath("extract-api.js"), ...entryOpt, ...ignoreTagsOpt, ...apiReportFolderOpt, ...apiReportTempFolderOpt, ...apiSummaryFolderOpt]);
165
165
  }
166
166
 
167
167
  function pseudolocalizeCommand(options) {
168
168
  const englishDir = options.englishDir ? ["--englishDir", options.englishDir] : [];
169
169
  const outOpt = options.out ? ["--out", options.out] : [];
170
- exec(["node", getScriptPath("pseudolocalize"), ...englishDir, ...outOpt]);
170
+ exec("node", [getScriptPath("pseudolocalize"), ...englishDir, ...outOpt]);
171
171
  }
172
172
 
173
173
  function copyAssetsCommand(options) {
174
174
  const packageJsonDir = options.packageJsonDir ? ["--packageJsonDir", options.packageJsonDir] : [];
175
175
  const nodeModulesDir = options.nodeModulesDir ? ["--nodeModulesDir", options.nodeModulesDir] : [];
176
176
  const destinationDir = options.destinationDir ? ["--destinationDir", options.destinationDir] : [];
177
- exec(["node", path.resolve(__dirname, "../scripts/copy-assets.js"), ...packageJsonDir, ...nodeModulesDir, ...destinationDir]);
177
+ exec("node", [path.resolve(__dirname, "../scripts/copy-assets.js"), ...packageJsonDir, ...nodeModulesDir, ...destinationDir]);
178
178
  }
179
179
 
180
- function exec(cmd) {
180
+ function exec(cmd, args) {
181
181
  console.log("Running command:");
182
- console.log(cmd.join(" "));
182
+ console.log(`${cmd} ${args.join(' ')}`);
183
183
  try {
184
- return child_process.execSync(cmd.join(" "), { encoding: "utf8", stdio: 'inherit' });
184
+ return child_process.execFileSync(cmd, args, { encoding: "utf8", stdio: 'inherit' });
185
185
  } catch (error) {
186
186
  if (error.status)
187
187
  process.exit(error.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "4.1.0-dev.3",
3
+ "version": "4.1.0-dev.30",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {