Updated
On this page
Dart release target that manages version tracking in pubspec.yaml and scaffolds CI workflows for publishing to pub.dev.
#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
python
def name(self)#detect
python
def detect(self, dir_path)#read_version
python
def read_version(self, dir_path)Read the version from pubspec.yaml, stripping any +N build number.
#write_version
python
def write_version(self, dir_path, version)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
python
def _compute_version_with_build_number(self, old_version, new_semver, dir_path)Determine the full version string including build number handling.
#version_file
python
def version_file(self)#read_name
python
def read_name(self, dir_path)Read the package name from pubspec.yaml.
#read_metadata
python
def read_metadata(self, dir_path)Read description and license from pubspec.yaml.