@mui/internal-code-infra 0.0.4-canary.111 → 0.0.4-canary.112

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.
@@ -8,7 +8,7 @@ export type Args = {
8
8
  /**
9
9
  * - Output format (name, path, or json)
10
10
  */
11
- output?: 'json' | 'path' | 'name' | 'publish-dir';
11
+ output?: 'json' | 'path' | 'name';
12
12
  /**
13
13
  * - Git reference to filter changes since
14
14
  */
@@ -21,7 +21,7 @@ export type Args = {
21
21
  /**
22
22
  * @typedef {Object} Args
23
23
  * @property {boolean} [publicOnly] - Whether to filter to only public packages
24
- * @property {'json'|'path'|'name'|'publish-dir'} [output] - Output format (name, path, or json)
24
+ * @property {'json'|'path'|'name'} [output] - Output format (name, path, or json)
25
25
  * @property {string} [sinceRef] - Git reference to filter changes since
26
26
  * @property {string[]} [filter] - Same as filtering packages with --filter in pnpm. Only include packages matching the filter. See https://pnpm.io/filtering.
27
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.111",
3
+ "version": "0.0.4-canary.112",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -136,8 +136,8 @@
136
136
  "unist-util-visit": "^5.1.0",
137
137
  "yaml": "^2.9.0",
138
138
  "yargs": "^18.1.0",
139
- "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.31",
140
139
  "@mui/internal-babel-plugin-display-name": "1.0.4-canary.24",
140
+ "@mui/internal-babel-plugin-minify-errors": "2.0.8-canary.31",
141
141
  "@mui/internal-babel-plugin-resolve-imports": "2.0.7-canary.43"
142
142
  },
143
143
  "peerDependencies": {
@@ -187,7 +187,7 @@
187
187
  "publishConfig": {
188
188
  "access": "public"
189
189
  },
190
- "gitSha": "9e0cb003bd909d9f1b5f9f33b1706f3ce1627ea8",
190
+ "gitSha": "eabc9a70f76489811b6e04991bdcf7f5d03fa8bb",
191
191
  "scripts": {
192
192
  "build": "tsc -p tsconfig.build.json",
193
193
  "typescript": "tsc -noEmit",
@@ -6,14 +6,12 @@
6
6
  * @typedef {import('../utils/pnpm.mjs').PublicPackage} PublicPackage
7
7
  */
8
8
 
9
- import * as fs from 'node:fs/promises';
10
- import * as path from 'node:path';
11
9
  import { getWorkspacePackages } from '../utils/pnpm.mjs';
12
10
 
13
11
  /**
14
12
  * @typedef {Object} Args
15
13
  * @property {boolean} [publicOnly] - Whether to filter to only public packages
16
- * @property {'json'|'path'|'name'|'publish-dir'} [output] - Output format (name, path, or json)
14
+ * @property {'json'|'path'|'name'} [output] - Output format (name, path, or json)
17
15
  * @property {string} [sinceRef] - Git reference to filter changes since
18
16
  * @property {string[]} [filter] - Same as filtering packages with --filter in pnpm. Only include packages matching the filter. See https://pnpm.io/filtering.
19
17
  */
@@ -30,10 +28,10 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
30
28
  })
31
29
  .option('output', {
32
30
  type: 'string',
33
- choices: ['json', 'path', 'name', 'publish-dir'],
31
+ choices: ['json', 'path', 'name'],
34
32
  default: 'path',
35
33
  description:
36
- 'Output format: name (package names), path (package paths), publish-dir (publish directories), or json (full JSON)',
34
+ 'Output format: name (package names), path (package paths), or json (full JSON)',
37
35
  })
38
36
  .option('since-ref', {
39
37
  type: 'string',
@@ -60,32 +58,6 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
60
58
  packages.forEach((pkg) => {
61
59
  console.log(pkg.path);
62
60
  });
63
- } else if (output === 'publish-dir') {
64
- // Works around https://github.com/stackblitz-labs/pkg.pr.new/issues/389: pkg-pr-new rewrites
65
- // workspace:* deps to its URLs in the source package.json, but `pnpm pack` honors
66
- // publishConfig.directory and packs the build package.json, whose workspace:* deps are left to
67
- // resolve to plain versions. Pointing pkg-pr-new at the build dir makes both act on the same file.
68
- // Note: #389 was closed by pkg-pr-new#499, but that only fixed the tarball location, not the dep
69
- // resolution — verified still broken on 0.0.78. Do not remove until the packed deps are URLs
70
- // without this. Removing it prematurely regressed publishing once (see mui-public#1354).
71
- // Print publish directories (package.json publishConfig.directory or package path)
72
- const publishDirs = await Promise.all(
73
- packages.map(async (pkg) => {
74
- const packageJsonPath = path.join(pkg.path, 'package.json');
75
- const packageJsonContent = await fs.readFile(packageJsonPath, 'utf8');
76
- const packageJson = JSON.parse(packageJsonContent);
77
-
78
- if (packageJson.publishConfig?.directory) {
79
- return path.join(pkg.path, packageJson.publishConfig.directory);
80
- }
81
-
82
- return pkg.path;
83
- }),
84
- );
85
-
86
- publishDirs.forEach((dir) => {
87
- console.log(dir);
88
- });
89
61
  } else if (output === 'name') {
90
62
  // Print package names (default)
91
63
  packages.forEach((pkg) => {