Skip to content

Commit

Permalink
Fix preCommit version script
Browse files Browse the repository at this point in the history
  • Loading branch information
mugikhan committed Nov 12, 2024
1 parent 19457da commit e1ba4a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ command:
# Automatically update libraryVersion:
preCommit: |
dart run tool/update_version.dart
git add packages/powersync/lib/src/version.dart
git add packages/powersync_core/lib/src/version.dart
publish:
hooks:
pre: dart ./scripts/download_core_binary_demos.dart # Download latest core binaries when publishing
Expand Down
2 changes: 1 addition & 1 deletion tool/update_version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ void main() {
final yaml = loadYaml(pubspecContent);
final version = yaml['version'];

final versionFile = File('packages/powersync/lib/src/version.dart');
final versionFile = File('packages/powersync_core/lib/src/version.dart');
versionFile.writeAsStringSync("const String libraryVersion = '$version';\n");
}

0 comments on commit e1ba4a4

Please sign in to comment.