@nx/js 19.6.0-beta.2 → 19.6.0-beta.3

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": "@nx/js",
3
- "version": "19.6.0-beta.2",
3
+ "version": "19.6.0-beta.3",
4
4
  "private": false,
5
5
  "description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
6
6
  "repository": {
@@ -58,9 +58,9 @@
58
58
  "semver": "^7.5.3",
59
59
  "source-map-support": "0.5.19",
60
60
  "tslib": "^2.3.0",
61
- "@nx/devkit": "19.6.0-beta.2",
62
- "@nx/workspace": "19.6.0-beta.2",
63
- "@nrwl/js": "19.6.0-beta.2"
61
+ "@nx/devkit": "19.6.0-beta.3",
62
+ "@nx/workspace": "19.6.0-beta.3",
63
+ "@nrwl/js": "19.6.0-beta.3"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "verdaccio": "^5.0.4"
@@ -290,7 +290,8 @@ To fix this you will either need to add a package.json file at that location, or
290
290
  }
291
291
  }
292
292
  if (options.releaseGroup.projectsRelationship === 'independent') {
293
- specifier = options.releaseGroup.versionPlans.reduce((spec, plan) => {
293
+ specifier = options.releaseGroup
294
+ .resolvedVersionPlans.reduce((spec, plan) => {
294
295
  if (!spec) {
295
296
  return plan.projectVersionBumps[projectName];
296
297
  }
@@ -305,7 +306,7 @@ To fix this you will either need to add a package.json file at that location, or
305
306
  }, null);
306
307
  }
307
308
  else {
308
- specifier = options.releaseGroup.versionPlans.reduce((spec, plan) => {
309
+ specifier = options.releaseGroup.resolvedVersionPlans.reduce((spec, plan) => {
309
310
  if (!spec) {
310
311
  return plan.groupVersionBump;
311
312
  }
@@ -332,7 +333,7 @@ To fix this you will either need to add a package.json file at that location, or
332
333
  logger.buffer(`📄 Resolved the specifier as "${specifier}" using version plans.`);
333
334
  }
334
335
  if (options.deleteVersionPlans) {
335
- options.releaseGroup.versionPlans.forEach((p) => {
336
+ (options.releaseGroup.resolvedVersionPlans || []).forEach((p) => {
336
337
  deleteVersionPlanCallbacks.push(async (dryRun) => {
337
338
  if (!dryRun) {
338
339
  await (0, fs_extra_1.remove)(p.absolutePath);
@@ -386,7 +387,7 @@ To fix this you will either need to add a package.json file at that location, or
386
387
  let isInCurrentBatch = options.projects.some((project) => project.name === dependentProject.source);
387
388
  // For version-plans, we don't just need to consider the current batch of projects, but also the ones that are actually being updated as part of the plan file(s)
388
389
  if (isInCurrentBatch && options.specifierSource === 'version-plans') {
389
- isInCurrentBatch = (options.releaseGroup.versionPlans || []).some((plan) => {
390
+ isInCurrentBatch = (options.releaseGroup.resolvedVersionPlans || []).some((plan) => {
390
391
  if ('projectVersionBumps' in plan) {
391
392
  return plan.projectVersionBumps[dependentProject.source];
392
393
  }