@mui/internal-code-infra 0.0.4-canary.52 → 0.0.4-canary.53

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.
@@ -2,14 +2,14 @@
2
2
  export type PublicPackage = import('../utils/pnpm.mjs').PublicPackage;
3
3
  export type Args = {
4
4
  publicOnly?: boolean;
5
- output?: 'json' | 'path' | 'name' | 'publish-dir';
5
+ output?: 'json' | 'path' | 'name';
6
6
  sinceRef?: string;
7
7
  filter?: string[];
8
8
  };
9
9
  /**
10
10
  * @typedef {Object} Args
11
11
  * @property {boolean} [publicOnly] - Whether to filter to only public packages
12
- * @property {'json'|'path'|'name'|'publish-dir'} [output] - Output format (name, path, or json)
12
+ * @property {'json'|'path'|'name'} [output] - Output format (name, path, or json)
13
13
  * @property {string} [sinceRef] - Git reference to filter changes since
14
14
  * @property {string[]} [filter] - Same as filtering packages with --filter in pnpm. Only include packages matching the filter. See https://pnpm.io/filtering.
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-code-infra",
3
- "version": "0.0.4-canary.52",
3
+ "version": "0.0.4-canary.53",
4
4
  "author": "MUI Team",
5
5
  "description": "Infra scripts and configs to be used across MUI repos.",
6
6
  "license": "MIT",
@@ -191,7 +191,7 @@
191
191
  "publishConfig": {
192
192
  "access": "public"
193
193
  },
194
- "gitSha": "199cf2a0437625d612e5c2bbb6e63c1e9c9e8ecc",
194
+ "gitSha": "b4ed2d73599b0cef4b7e90c88e1e4d8163c670e8",
195
195
  "scripts": {
196
196
  "build": "tsgo -p tsconfig.build.json",
197
197
  "typescript": "tsgo -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,26 +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
- // TODO: Remove this option once https://github.com/stackblitz-labs/pkg.pr.new/issues/389 is resolved
65
- // Print publish directories (package.json publishConfig.directory or package path)
66
- const publishDirs = await Promise.all(
67
- packages.map(async (pkg) => {
68
- const packageJsonPath = path.join(pkg.path, 'package.json');
69
- const packageJsonContent = await fs.readFile(packageJsonPath, 'utf8');
70
- const packageJson = JSON.parse(packageJsonContent);
71
-
72
- if (packageJson.publishConfig?.directory) {
73
- return path.join(pkg.path, packageJson.publishConfig.directory);
74
- }
75
-
76
- return pkg.path;
77
- }),
78
- );
79
-
80
- publishDirs.forEach((dir) => {
81
- console.log(dir);
82
- });
83
61
  } else if (output === 'name') {
84
62
  // Print package names (default)
85
63
  packages.forEach((pkg) => {