nx 19.7.0-canary.20240904-f39b995 → 19.7.0-canary.20240905-ccda7f9

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.7.0-canary.20240904-f39b995",
3
+ "version": "19.7.0-canary.20240905-ccda7f9",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -71,7 +71,7 @@
71
71
  "yargs-parser": "21.1.1",
72
72
  "node-machine-id": "1.1.12",
73
73
  "ora": "5.3.0",
74
- "@nrwl/tao": "19.7.0-canary.20240904-f39b995"
74
+ "@nrwl/tao": "19.7.0-canary.20240905-ccda7f9"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@swc-node/register": "^1.8.0",
@@ -86,16 +86,16 @@
86
86
  }
87
87
  },
88
88
  "optionalDependencies": {
89
- "@nx/nx-darwin-x64": "19.7.0-canary.20240904-f39b995",
90
- "@nx/nx-darwin-arm64": "19.7.0-canary.20240904-f39b995",
91
- "@nx/nx-linux-x64-gnu": "19.7.0-canary.20240904-f39b995",
92
- "@nx/nx-linux-x64-musl": "19.7.0-canary.20240904-f39b995",
93
- "@nx/nx-win32-x64-msvc": "19.7.0-canary.20240904-f39b995",
94
- "@nx/nx-linux-arm64-gnu": "19.7.0-canary.20240904-f39b995",
95
- "@nx/nx-linux-arm64-musl": "19.7.0-canary.20240904-f39b995",
96
- "@nx/nx-linux-arm-gnueabihf": "19.7.0-canary.20240904-f39b995",
97
- "@nx/nx-win32-arm64-msvc": "19.7.0-canary.20240904-f39b995",
98
- "@nx/nx-freebsd-x64": "19.7.0-canary.20240904-f39b995"
89
+ "@nx/nx-darwin-x64": "19.7.0-canary.20240905-ccda7f9",
90
+ "@nx/nx-darwin-arm64": "19.7.0-canary.20240905-ccda7f9",
91
+ "@nx/nx-linux-x64-gnu": "19.7.0-canary.20240905-ccda7f9",
92
+ "@nx/nx-linux-x64-musl": "19.7.0-canary.20240905-ccda7f9",
93
+ "@nx/nx-win32-x64-msvc": "19.7.0-canary.20240905-ccda7f9",
94
+ "@nx/nx-linux-arm64-gnu": "19.7.0-canary.20240905-ccda7f9",
95
+ "@nx/nx-linux-arm64-musl": "19.7.0-canary.20240905-ccda7f9",
96
+ "@nx/nx-linux-arm-gnueabihf": "19.7.0-canary.20240905-ccda7f9",
97
+ "@nx/nx-win32-arm64-msvc": "19.7.0-canary.20240905-ccda7f9",
98
+ "@nx/nx-freebsd-x64": "19.7.0-canary.20240905-ccda7f9"
99
99
  },
100
100
  "nx-migrations": {
101
101
  "migrations": "./migrations.json",
@@ -608,7 +608,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
608
608
  }
609
609
  const changedFiles = changes.map((f) => f.path);
610
610
  let deletedFiles = [];
611
- if (args.deleteVersionPlans && !args.dryRun) {
611
+ if (args.deleteVersionPlans) {
612
612
  const planFiles = new Set();
613
613
  releaseGroups.forEach((group) => {
614
614
  if (group.resolvedVersionPlans) {
@@ -39,6 +39,7 @@ export type PublishOptions = NxReleaseArgs & Partial<RunManyOptions> & {
39
39
  } & FirstReleaseArgs & {
40
40
  registry?: string;
41
41
  tag?: string;
42
+ access?: string;
42
43
  otp?: number;
43
44
  };
44
45
  export type PlanOptions = NxReleaseArgs & {
@@ -187,6 +187,11 @@ const publishCommand = {
187
187
  .option('tag', {
188
188
  type: 'string',
189
189
  description: 'The distribution tag to apply to the published package',
190
+ })
191
+ .option('access', {
192
+ type: 'string',
193
+ choices: ['public', 'restricted'],
194
+ description: 'Overrides the access level of the published package. Unscoped packages cannot be set to restricted. See the npm publish documentation for more information.',
190
195
  })
191
196
  .option('otp', {
192
197
  type: 'number',
@@ -203,10 +208,7 @@ const publishCommand = {
203
208
  const planCommand = {
204
209
  command: 'plan [bump]',
205
210
  aliases: ['pl'],
206
- // TODO: Remove this when docs are added
207
- // Create a plan to pick a new version and generate a changelog entry.
208
- // Hidden for now until the feature is more stable
209
- describe: false,
211
+ describe: 'Create a version plan file to specify the desired semver bump for one or more projects or groups, as well as the relevant changelog entry',
210
212
  builder: (yargs) => (0, shared_options_1.withAffectedOptions)(yargs)
211
213
  .positional('bump', {
212
214
  type: 'string',
@@ -242,10 +244,7 @@ const planCommand = {
242
244
  };
243
245
  const planCheckCommand = {
244
246
  command: 'plan:check',
245
- // TODO: Remove this when docs are added
246
- // Create a plan to pick a new version and generate a changelog entry.
247
- // Hidden for now until the feature is more stable
248
- describe: false,
247
+ describe: 'Ensure that all touched projects have an applicable version plan created for them',
249
248
  builder: (yargs) => (0, shared_options_1.withAffectedOptions)(yargs),
250
249
  handler: async (args) => {
251
250
  const release = await Promise.resolve().then(() => require('./plan-check'));
@@ -103,6 +103,9 @@ async function runPublishOnProjects(args, projectGraph, nxJson, projectNames, is
103
103
  if (args.otp) {
104
104
  overrides.otp = args.otp;
105
105
  }
106
+ if (args.access) {
107
+ overrides.access = args.access;
108
+ }
106
109
  if (args.dryRun) {
107
110
  overrides.dryRun = args.dryRun;
108
111
  /**
@@ -136,7 +136,7 @@ async function gitAdd({ changedFiles, deletedFiles, dryRun, verbose, logFn, cwd,
136
136
  ignoredFiles.push(f);
137
137
  // git add will fail if trying to add an untracked file that doesn't exist
138
138
  }
139
- else if (changedTrackedFiles.has(f)) {
139
+ else if (changedTrackedFiles.has(f) || dryRun) {
140
140
  filesToAdd.push(f);
141
141
  }
142
142
  }
@@ -3,7 +3,7 @@ interface ExcludeOptions {
3
3
  exclude: string[];
4
4
  }
5
5
  export declare const defaultYargsParserConfiguration: Partial<ParserConfigurationOptions>;
6
- export declare function withExcludeOption(yargs: Argv): Argv<ExcludeOptions>;
6
+ export declare function withExcludeOption<T>(yargs: Argv<T>): Argv<T & ExcludeOptions>;
7
7
  export interface RunOptions {
8
8
  exclude: string;
9
9
  parallel: string;
@@ -20,6 +20,7 @@ export interface RunOptions {
20
20
  batch: boolean;
21
21
  useAgents: boolean;
22
22
  excludeTaskDependencies: boolean;
23
+ skipSync: boolean;
23
24
  }
24
25
  export declare function withRunOptions<T>(yargs: Argv<T>): Argv<T & RunOptions>;
25
26
  export declare function withTargetAndConfigurationOption(yargs: Argv, demandOption?: boolean): Argv<{
@@ -79,6 +79,11 @@ function withRunOptions(yargs) {
79
79
  describe: 'Skips running dependent tasks first',
80
80
  type: 'boolean',
81
81
  default: false,
82
+ })
83
+ .option('skipSync', {
84
+ type: 'boolean',
85
+ // TODO(leo): add description and make it visible once it is stable
86
+ hidden: true,
82
87
  })
83
88
  .options('cloud', {
84
89
  type: 'boolean',