@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 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.76",
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.76",
42
+ "@itwin/eslint-plugin": "3.0.0-dev.80",
43
43
  "@types/node": "14.14.31",
44
44
  "eslint": "^7.11.0"
45
45
  },
@@ -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
  };
@@ -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 = [
@@ -6,7 +6,6 @@
6
6
 
7
7
  /** Generates pseudo localization files from the en localization JSON files.
8
8
  */
9
-
10
9
  function pseudoLocalizeObject(objIn) {
11
10
  let objOut = {};
12
11
  for (let prop in objIn) {
@@ -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
- 1700, // https://npmjs.com/advisories/1700
41
- 1754, // https://npmjs.com/advisories/1754. Waiting for fix, https://github.com/svg/svgo/pull/1485.
42
- 1755, // https://npmjs.com/advisories/1755. Waiting for fix, https://github.com/sindresorhus/normalize-url/issues/135
43
- 1779, // https://npmjs.com/advisories/1779. Waiting for fix in @bentley/react-scripts
44
- 1780, // https://npmjs.com/advisories/1780. Waiting for fix in @bentley/react-scripts
45
- 1781, // https://npmjs.com/advisories/1781. Waiting for fix in @bentley/react-scripts
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.id) && (severity === "HIGH" || severity === "CRITICAL")) {
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.id) || severity === "MODERATE") // Only warn on MODERATE severity items
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
  }
@@ -1,35 +1,28 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "es2017",
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
- "strict": true,
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
- "strictNullChecks": true,
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
- "inlineSources": true,
30
- "declarationMap": true,
31
- "jsx": "react",
32
- "forceConsistentCasingInFileNames": true,
33
- "incremental": true
23
+ "strict": true,
24
+ "strictNullChecks": true,
25
+ "stripInternal": false,
26
+ "target": "ES2019"
34
27
  }
35
28
  }