@itwin/build-tools 3.0.0-dev.76 → 3.0.0-dev.80
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/.nycrc +4 -4
- package/package.json +2 -2
- package/scripts/config/paths.js +5 -5
- package/scripts/extract-api.js +2 -2
- package/scripts/pseudolocalize.js +0 -1
- package/scripts/rush/audit.js +9 -8
- package/tsconfig-base.json +17 -24
package/.nycrc
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
],
|
6
6
|
"include": [
|
7
7
|
"src/**/*",
|
8
|
-
"lib/**/*"
|
8
|
+
"lib/cjs/**/*"
|
9
9
|
],
|
10
10
|
"exclude": [
|
11
11
|
"src/test/**/*",
|
12
|
-
"lib/test/**/*",
|
12
|
+
"lib/cjs/test/**/*",
|
13
13
|
"lib/module/**/*",
|
14
14
|
"**/*.d.ts",
|
15
15
|
"**/*.d.tsx"
|
@@ -18,8 +18,8 @@
|
|
18
18
|
".ts",
|
19
19
|
".tsx"
|
20
20
|
],
|
21
|
-
"temp-dir": "./lib/test/coverage/.nyc_output",
|
22
|
-
"report-dir": "./lib/test/coverage",
|
21
|
+
"temp-dir": "./lib/cjs/test/coverage/.nyc_output",
|
22
|
+
"report-dir": "./lib/cjs/test/coverage",
|
23
23
|
"reporter": [
|
24
24
|
"text-summary",
|
25
25
|
"lcov",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itwin/build-tools",
|
3
|
-
"version": "3.0.0-dev.
|
3
|
+
"version": "3.0.0-dev.80",
|
4
4
|
"description": "Bentley build tools",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"yargs": "^16.0.0"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@itwin/eslint-plugin": "3.0.0-dev.
|
42
|
+
"@itwin/eslint-plugin": "3.0.0-dev.80",
|
43
43
|
"@types/node": "14.14.31",
|
44
44
|
"eslint": "^7.11.0"
|
45
45
|
},
|
package/scripts/config/paths.js
CHANGED
@@ -15,13 +15,13 @@ module.exports = {
|
|
15
15
|
appSrc: resolveApp('src'),
|
16
16
|
appTest: resolveApp('src/test'),
|
17
17
|
appLib: resolveApp('lib'),
|
18
|
-
appLibPublic: resolveApp('lib/public'),
|
19
|
-
appLibTests: resolveApp('lib/test'),
|
18
|
+
appLibPublic: resolveApp('lib/cjs/public'),
|
19
|
+
appLibTests: resolveApp('lib/cjs/test'),
|
20
20
|
appPublic: resolveApp('public'),
|
21
|
-
appDocs: resolveApp('lib/docs'),
|
22
|
-
appJsonDocs: resolveApp('lib/docs/json/file.json'),
|
21
|
+
appDocs: resolveApp('lib/cjs/docs'),
|
22
|
+
appJsonDocs: resolveApp('lib/cjs/docs/json/file.json'),
|
23
23
|
appJUnitTestResults: resolveApp('lib/test/junit_results.xml'),
|
24
|
-
libExtract: resolveApp('lib/extract'),
|
24
|
+
libExtract: resolveApp('lib/cjs/extract'),
|
25
25
|
appLocalesEnglish: resolveApp('public/locales/en'),
|
26
26
|
appLocalesPseudolocalize: resolveApp('public/locales/en-pseudo'),
|
27
27
|
};
|
package/scripts/extract-api.js
CHANGED
@@ -35,7 +35,7 @@ const rushCommon = resolveRoot("common");
|
|
35
35
|
|
36
36
|
const config = {
|
37
37
|
$schema: "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
38
|
-
projectFolder: "
|
38
|
+
projectFolder: "../../",
|
39
39
|
compiler: {
|
40
40
|
tsconfigFilePath: "<projectFolder>/tsconfig.json"
|
41
41
|
},
|
@@ -98,7 +98,7 @@ if (!fs.existsSync("lib")) {
|
|
98
98
|
process.exit(1);
|
99
99
|
}
|
100
100
|
|
101
|
-
const configFileName = `lib/${entryPointFileName}.json`;
|
101
|
+
const configFileName = `lib/cjs/${entryPointFileName}.json`;
|
102
102
|
fs.writeFileSync(configFileName, JSON.stringify(config, null, 2));
|
103
103
|
|
104
104
|
const args = [
|
package/scripts/rush/audit.js
CHANGED
@@ -37,12 +37,13 @@ const rushCommonDir = path.join(__dirname, "../../../../common/");
|
|
37
37
|
// for development dependencies only.
|
38
38
|
// All security issues should be addressed asap.
|
39
39
|
const excludedAdvisories = [
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
"GHSA-8p5q-j9m2-g8wr", // https://github.com/advisories/GHSA-8p5q-j9m2-g8wr.
|
41
|
+
"GHSA-ww39-953v-wcq6", // https://github.com/advisories/GHSA-ww39-953v-wcq6.
|
42
|
+
"GHSA-8v27-2fg9-7h62", // https://github.com/advisories/GHSA-8v27-2fg9-7h62.
|
43
|
+
"GHSA-33f9-j839-rf8h", // https://github.com/advisories/GHSA-33f9-j839-rf8h.
|
44
|
+
"GHSA-c36v-fmgq-m8hx", // https://github.com/advisories/GHSA-c36v-fmgq-m8hx.
|
45
|
+
"GHSA-4jqc-8m5r-9rpr", // https://github.com/advisories/GHSA-4jqc-8m5r-9rpr.
|
46
|
+
"GHSA-whgm-jr23-g3j9", // https://github.com/advisories/GHSA-whgm-jr23-g3j9.
|
46
47
|
];
|
47
48
|
|
48
49
|
let shouldFailBuild = false;
|
@@ -57,10 +58,10 @@ const rushCommonDir = path.join(__dirname, "../../../../common/");
|
|
57
58
|
const message = `${severity} Security Vulnerability: ${advisory.title} in ${advisory.module_name} (from ${mpath}). See ${advisory.url} for more info.`;
|
58
59
|
|
59
60
|
// For now, we'll only treat CRITICAL and HIGH vulnerabilities as errors in CI builds.
|
60
|
-
if (!excludedAdvisories.includes(advisory.
|
61
|
+
if (!excludedAdvisories.includes(advisory.github_advisory_id) && (severity === "HIGH" || severity === "CRITICAL")) {
|
61
62
|
logBuildError(message);
|
62
63
|
shouldFailBuild = true;
|
63
|
-
} else if (excludedAdvisories.includes(advisory.
|
64
|
+
} else if (excludedAdvisories.includes(advisory.github_advisory_id) || severity === "MODERATE") // Only warn on MODERATE severity items
|
64
65
|
logBuildWarning(message);
|
65
66
|
}
|
66
67
|
}
|
package/tsconfig-base.json
CHANGED
@@ -1,35 +1,28 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"
|
4
|
-
"lib": [
|
5
|
-
// Required for async iterators/generators:
|
6
|
-
"esnext.asynciterable",
|
7
|
-
// These are the defaults for "target": "es2017", but they have to be explicitly specified if we want to add anything to "lib":
|
8
|
-
"es2017",
|
9
|
-
"dom",
|
10
|
-
"dom.iterable",
|
11
|
-
"scripthost"
|
12
|
-
],
|
13
|
-
"module": "commonjs",
|
14
|
-
"stripInternal": false,
|
3
|
+
"alwaysStrict": true,
|
15
4
|
"declaration": true,
|
16
|
-
"
|
5
|
+
"declarationMap": true,
|
6
|
+
"esModuleInterop": false,
|
7
|
+
"experimentalDecorators": true,
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
9
|
+
"incremental": true,
|
10
|
+
"inlineSources": true,
|
11
|
+
"jsx": "react",
|
12
|
+
"module": "commonjs",
|
13
|
+
"moduleResolution": "node",
|
14
|
+
"noFallthroughCasesInSwitch": false,
|
17
15
|
"noImplicitAny": true,
|
18
|
-
"
|
16
|
+
"noImplicitOverride": true,
|
17
|
+
"noImplicitReturns": true,
|
19
18
|
"noImplicitThis": true,
|
20
|
-
"alwaysStrict": true,
|
21
19
|
"noUnusedLocals": false,
|
22
20
|
"noUnusedParameters": true,
|
23
|
-
"noImplicitReturns": true,
|
24
|
-
"noImplicitOverride": true,
|
25
|
-
"noFallthroughCasesInSwitch": false,
|
26
|
-
"experimentalDecorators": true,
|
27
21
|
"skipLibCheck": true,
|
28
22
|
"sourceMap": true,
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"incremental": true
|
23
|
+
"strict": true,
|
24
|
+
"strictNullChecks": true,
|
25
|
+
"stripInternal": false,
|
26
|
+
"target": "ES2019"
|
34
27
|
}
|
35
28
|
}
|