@mui/internal-code-infra 0.0.2-canary.30 โ†’ 0.0.2-canary.32

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.2-canary.30",
3
+ "version": "0.0.2-canary.32",
4
4
  "description": "Infra scripts and configs to be used across MUI repos.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -89,7 +89,7 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitSha": "01a4b2c7a0dbc772ca3a8d8d458fec5e301ed3d6",
92
+ "gitSha": "7fa01c4c70e0e76598ac08ca913fb7a3f7ac5713",
93
93
  "scripts": {
94
94
  "typescript": "tsc -p tsconfig.json",
95
95
  "test": "pnpm -w test --project @mui/internal-code-infra",
@@ -370,7 +370,7 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
370
370
  path.join(outputDir, 'package.json'),
371
371
  JSON.stringify({
372
372
  type: bundle === 'esm' ? 'module' : 'commonjs',
373
- sideEffects: packageJson.sideEffects || undefined,
373
+ sideEffects: packageJson.sideEffects ?? false,
374
374
  }),
375
375
  ),
376
376
  );
@@ -18,7 +18,6 @@ import { getWorkspacePackages, publishPackages } from './pnpm.mjs';
18
18
  * @typedef {Object} Args
19
19
  * @property {boolean} dry-run Run in dry-run mode without publishing
20
20
  * @property {boolean} no-git-checks - Skip git checks before publishing
21
- * @property {boolean} provenance - Enable provenance tracking for the publish
22
21
  */
23
22
 
24
23
  /**
@@ -271,26 +270,17 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
271
270
  type: 'boolean',
272
271
  default: false,
273
272
  description: 'Skip git checks before publishing',
274
- })
275
- .option('provenance', {
276
- type: 'boolean',
277
- default: false,
278
- description: 'Enable provenance tracking for the publish',
279
273
  });
280
274
  },
281
275
  handler: async (argv) => {
282
- const { dryRun = false, provenance = false, githubRelease = false } = argv;
276
+ const { dryRun = false, githubRelease = false } = argv;
283
277
 
284
- const options = { dryRun, provenance };
278
+ const options = { dryRun };
285
279
 
286
280
  if (dryRun) {
287
281
  console.log('๐Ÿงช Running in DRY RUN mode - no actual publishing will occur\n');
288
282
  }
289
283
 
290
- if (provenance) {
291
- console.log('๐Ÿ” Provenance enabled - packages will include provenance information\n');
292
- }
293
-
294
284
  // Get all packages
295
285
  console.log('๐Ÿ” Discovering all workspace packages...');
296
286
  const allPackages = await getWorkspacePackages({ publicOnly: true });
@@ -14,7 +14,6 @@ import * as semver from 'semver';
14
14
  /**
15
15
  * @typedef {Object} Args
16
16
  * @property {boolean} [dryRun] - Whether to run in dry-run mode
17
- * @property {boolean} [provenance] - Whether to include provenance information
18
17
  */
19
18
 
20
19
  import {
@@ -181,31 +180,21 @@ export default /** @type {import('yargs').CommandModule<{}, Args>} */ ({
181
180
  command: 'publish-canary',
182
181
  describe: 'Publish canary packages to npm',
183
182
  builder: (yargs) => {
184
- return yargs
185
- .option('dry-run', {
186
- type: 'boolean',
187
- default: false,
188
- description: 'Run in dry-run mode without publishing',
189
- })
190
- .option('provenance', {
191
- type: 'boolean',
192
- default: false,
193
- description: 'Include provenance information in published packages',
194
- });
183
+ return yargs.option('dry-run', {
184
+ type: 'boolean',
185
+ default: false,
186
+ description: 'Run in dry-run mode without publishing',
187
+ });
195
188
  },
196
189
  handler: async (argv) => {
197
- const { dryRun = false, provenance = false } = argv;
190
+ const { dryRun = false } = argv;
198
191
 
199
- const options = { dryRun, provenance };
192
+ const options = { dryRun };
200
193
 
201
194
  if (dryRun) {
202
195
  console.log('๐Ÿงช Running in DRY RUN mode - no actual publishing will occur\n');
203
196
  }
204
197
 
205
- if (provenance) {
206
- console.log('๐Ÿ” Provenance enabled - packages will include provenance information\n');
207
- }
208
-
209
198
  // Always get all packages first
210
199
  console.log('๐Ÿ” Discovering all workspace packages...');
211
200
  const allPackages = await getWorkspacePackages({ publicOnly: true });
package/src/cli/pnpm.mjs CHANGED
@@ -21,7 +21,6 @@ import * as semver from 'semver';
21
21
  /**
22
22
  * @typedef {Object} PublishOptions
23
23
  * @property {boolean} [dryRun] - Whether to run in dry-run mode
24
- * @property {boolean} [provenance] - Whether to include provenance information
25
24
  * @property {boolean} [noGitChecks] - Whether to skip git checks
26
25
  */
27
26
 
@@ -127,14 +126,7 @@ export async function publishPackages(packages, tag, options = {}) {
127
126
  args.push('--no-git-checks');
128
127
  }
129
128
 
130
- // Set up environment variables
131
- /** @type {Record<string, string>} */
132
- const env = {};
133
- if (options.provenance) {
134
- env.NPM_CONFIG_PROVENANCE = 'true';
135
- }
136
-
137
- await $({ stdio: 'inherit', env })`pnpm -r publish --access public --tag=${tag} ${args}`;
129
+ await $({ stdio: 'inherit' })`pnpm -r publish --access public --tag=${tag} ${args}`;
138
130
  }
139
131
 
140
132
  /**