@mui/internal-code-infra 0.0.3-canary.21 → 0.0.3-canary.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.3-canary.21",
3
+ "version": "0.0.3-canary.22",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -64,9 +64,9 @@
64
64
  "stylelint-config-standard": "^39.0.0",
65
65
  "typescript-eslint": "^8.45.0",
66
66
  "yargs": "^18.0.0",
67
- "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.23",
68
67
  "@mui/internal-babel-plugin-display-name": "1.0.4-canary.7",
69
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10"
68
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.10",
69
+ "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.23"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "eslint": "^9.0.0",
@@ -97,7 +97,7 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitSha": "e79fecf38c0782906060995f47503918a10c19c5",
100
+ "gitSha": "c9aa90f8db91be7b891ec34dab91937ebf8bb175",
101
101
  "scripts": {
102
102
  "typescript": "tsc -p tsconfig.json",
103
103
  "test": "pnpm -w test --project @mui/internal-code-infra",
@@ -63,8 +63,11 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
63
63
  const screenshots = await globby(`${folder}/**/*`, {
64
64
  onlyFiles: true,
65
65
  });
66
+ const threshold = process.env.ARGOS_THRESHOLD ? parseFloat(process.env.ARGOS_THRESHOLD) : 0.5;
66
67
 
67
- console.log(`Found ${screenshots.length} screenshots.`);
68
+ console.log(
69
+ `Found ${screenshots.length} screenshots. Uploading with threshold ${threshold}.`,
70
+ );
68
71
  if (verbose) {
69
72
  console.log('Screenshots found:');
70
73
  screenshots.forEach((screenshot) => {
@@ -99,14 +102,22 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
99
102
  commit: circleSha1,
100
103
  branch: circleBranch,
101
104
  token: argosToken,
105
+ threshold,
102
106
  parallel: {
103
107
  total: batches.length,
104
108
  nonce: circleBuildNum,
105
109
  },
106
110
  });
107
111
 
112
+ if (verbose) {
113
+ console.log('Screenshots uploaded:');
114
+ for (const screenshot of result.screenshots) {
115
+ console.log(`- ${screenshot.name}. Threshold: ${screenshot.threshold}.`);
116
+ }
117
+ }
118
+
108
119
  console.log(
109
- `Batch of ${batches[i].length} screenshots uploaded. Build URL: ${result.build.url}`,
120
+ `Batch of ${batches[i].length} screenshots uploaded. Threshold: ${threshold}. Build URL: ${result.build.url}`,
110
121
  );
111
122
  }
112
123
  } finally {