Skip to content

Commit

Permalink
Adjust sdk location for easy local execution
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 20, 2024
1 parent 3eb75c9 commit 4a2ede4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test/fonts/font_test_project.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ class FontTestProject {

// overwrite the spot dependencies path
final repoRoot = File.fromUri(Platform.script).parent.path;
final content = pubspec
.readAsStringSync()
.replaceAll('../../../../../.', repoRoot);
final content =
pubspec.readAsStringSync().replaceAll('../../../../', repoRoot);
pubspec.writeAsStringSync(content);
}
if (file.name == 'test.dart') {
Expand Down
2 changes: 1 addition & 1 deletion test/fonts/templates/app_font/pubspec_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies:
flutter_test:
sdk: flutter
spot:
path: ../../../../../.
path: ../../../../


dev_dependencies:
Expand Down

0 comments on commit 4a2ede4

Please sign in to comment.