@itwin/build-tools 4.0.0-dev.4 → 4.0.0-dev.40
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 +15 -1
- package/mocha-reporter/index.js +1 -2
- package/package.json +3 -3
- package/scripts/utils/addSourceDir.js +7 -12
- package/tsconfig-base.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
# Change Log - @itwin/build-tools
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Wed, 08 Feb 2023 14:58:39 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 3.6.0
|
6
|
+
Wed, 08 Feb 2023 14:58:39 GMT
|
7
|
+
|
8
|
+
### Updates
|
9
|
+
|
10
|
+
- Fix script paths for situation when repository path has spaces
|
11
|
+
- add copy-assets script to betools command
|
12
|
+
- Added ability to override default exclude pattern for tests when generating docs
|
13
|
+
|
14
|
+
## 3.5.6
|
15
|
+
Fri, 24 Feb 2023 16:02:47 GMT
|
16
|
+
|
17
|
+
_Version update only_
|
4
18
|
|
5
19
|
## 3.5.5
|
6
20
|
Thu, 26 Jan 2023 22:53:27 GMT
|
package/mocha-reporter/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var _a, _b;
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
3
|
/*---------------------------------------------------------------------------------------------
|
5
4
|
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
@@ -30,7 +29,7 @@ if (isCI) {
|
|
30
29
|
if (typeof (mocha) !== "undefined")
|
31
30
|
mocha.forbidOnly();
|
32
31
|
else
|
33
|
-
require.cache[require.resolve("mocha/lib/mocharc.json", { paths:
|
32
|
+
require.cache[require.resolve("mocha/lib/mocharc.json", { paths: require.main?.paths ?? module.paths })].exports.forbidOnly = true;
|
34
33
|
}
|
35
34
|
// This is necessary to enable colored output when running in rush test:
|
36
35
|
Object.defineProperty(Base, "color", {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itwin/build-tools",
|
3
|
-
"version": "4.0.0-dev.
|
3
|
+
"version": "4.0.0-dev.40",
|
4
4
|
"description": "Bentley build tools",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -37,8 +37,8 @@
|
|
37
37
|
"yargs": "^17.4.0"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@itwin/eslint-plugin": "4.0.0-dev.
|
41
|
-
"@types/node": "18.11.5",
|
40
|
+
"@itwin/eslint-plugin": "4.0.0-dev.31",
|
41
|
+
"@types/node": "^18.11.5",
|
42
42
|
"eslint": "^7.11.0"
|
43
43
|
},
|
44
44
|
"eslintConfig": {
|
@@ -8,24 +8,19 @@ const path = require("path");
|
|
8
8
|
|
9
9
|
// We cannot guarantee the folder structure of a project
|
10
10
|
// so find the project root using rush env variable if available.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"package.json"
|
15
|
-
);
|
16
|
-
} else {
|
17
|
-
rootPackageJsonPath = path.resolve("../../../../package.json");
|
18
|
-
}
|
11
|
+
const rootPackageJson = process.env.RUSHSTACK_FILE_ERROR_BASE_FOLDER
|
12
|
+
? path.join(process.env.RUSHSTACK_FILE_ERROR_BASE_FOLDER, "package.json")
|
13
|
+
: "../../../../package.json"
|
19
14
|
|
20
|
-
|
15
|
+
// Check if path to root package.json is valid.
|
16
|
+
const rootPackageJsonPath = require.resolve(rootPackageJson);
|
21
17
|
|
22
18
|
// Appends the directory of the package root to the Typedoc JSON output
|
23
19
|
function addSourceDir(file, directory) {
|
24
20
|
if (FS.existsSync(file) && FS.statSync(file).isFile()) {
|
25
21
|
const contents = FS.readFileSync(file, "utf-8");
|
26
|
-
const
|
27
|
-
|
28
|
-
);
|
22
|
+
const pathToRootFolder = path.dirname(rootPackageJsonPath);
|
23
|
+
const packageRoot = directory.substring(pathToRootFolder.length + 1);
|
29
24
|
const jsonContents = JSON.parse(contents);
|
30
25
|
jsonContents["packageRoot"] = packageRoot.endsWith("src")
|
31
26
|
? packageRoot
|
package/tsconfig-base.json
CHANGED