evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a command-line tool that generates a changelog for a monorepo project using Nx's release capabilities. The tool should analyze commit history and create formatted changelog entries.
Your tool should:
The tool should accept these command-line arguments:
--version <version> - The version to use for the changelog (e.g., "1.2.0")--dry-run - Preview the changelog without creating files--from <ref> - Starting git reference for changelog (default: last tag)--to <ref> - Ending git reference for changelog (default: HEAD)The tool should:
Your implementation should handle these scenarios:
/**
* Main entry point for the changelog generator
*/
export function generateChangelog(options: ChangelogOptions): Promise<void>;
/**
* Options for changelog generation
*/
export interface ChangelogOptions {
version: string;
dryRun?: boolean;
from?: string;
to?: string;
}Provides core Nx functionality for workspace and project management.
Provides the Nx CLI and release capabilities for changelog generation.