INNER CODE UNIT · TypeScript

configureNxRelease

jscutlery/semver · packages/semver/src/generators/migrate-nx-release/index.ts:167

function configureNxRelease(
  tree: Tree,
  semverProjects: [string, ProjectConfiguration][],
): void {
  const nxJson = readNxJson(tree);

  if (nxJson == null) {
    logger.info('No nx.json detected, skipping Nx Release configuration.');
    return;
  }

  logger.info('Configuring Nx Release.');

  // We assume that all projects have the same configuration, so we only take the first one.
  const [, semverConfig] = semverProjects[0];
  const options = getSemverOptions(semverConfig);
  const tagPrefix = options.tagPrefix ?? '{projectName}-';
  const skipProjectChangelog = options.skipProjectChangelog ?? false;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…