On this page
Dart release target that manages version tracking in pubspec.yaml, handles build number strategies, and scaffolds CI workflows for pub.dev publishing.
#rlsbl.targets.dart
#rlsbl.targets.dart
Dart release target that manages version tracking in pubspec.yaml and scaffolds CI workflows for publishing to pub.dev.
#DartTarget
Release target for Dart packages (pubspec.yaml).
#name
def name(self)#find_dead_modules
def find_dead_modules(self, root, *, exclude_dirs=None, suppress=frozenset())Breadth-first reachability from the package's entry points.
#find_circular_dependencies
def find_circular_dependencies(self, root, *, exclude_dirs=None)Detect circular imports between the package's Dart sources.
#detect
def detect(self, dir_path)#read_version
def read_version(self, dir_path)Read the version from pubspec.yaml, stripping any +N build number.
#write_version
def write_version(self, dir_path, version, ctx)Write a new version to pubspec.yaml, preserving comments and formatting.
Handles build number (+N) based on .rlsbl/config.json:
- build_number.enabled=true, strategy="increment": increment +N
- Otherwise: preserve existing +N if present
Returns a list of relative file paths that were modified.
#_compute_version_with_build_number
def _compute_version_with_build_number(self, old_version, new_semver, dir_path, ctx)Determine the full version string including build number handling.
#version_file
def version_file(self, dir_path=None)#read_name
def read_name(self, dir_path, ctx)Read the package name from pubspec.yaml.
#read_metadata
def read_metadata(self, dir_path)Read description and license from pubspec.yaml.
#template_dir
def template_dir(self)#template_mappings
def template_mappings(self, ctx)