Skip to content

Commit 2ebb870

Browse files
committed
v6.7.4
1 parent 1f1dea6 commit 2ebb870

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [6.7.4] - 2025-04-10
2+
3+
* Fix commands not being run using `runProcess`
4+
15
## [6.7.3] - 2025-04-09
26

37
* Update pubspec.yaml

lib/metro/metro.dart

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,12 @@ _makeApiService(List<String> arguments) async {
590590
classReCase: classReCase,
591591
hasForceFlag: hasForceFlag,
592592
baseUrlFlagValue: baseUrlFlagValue);
593-
await MetroService.runProcess("dart format lib/app/models");
594-
await MetroService.runProcess("dart format lib/app/networking");
593+
await Process.start("dart", ["format", "lib/app/models"],
594+
mode: ProcessStartMode.inheritStdio);
595+
596+
await Process.start("dart", ["format", "lib/app/networking"],
597+
mode: ProcessStartMode.inheritStdio);
598+
595599
exit(0);
596600
}
597601

@@ -1086,7 +1090,8 @@ _makeModel(List<String> arguments) async {
10861090
String modelData = await MetroService.loadAsset("nylo-model.json");
10871091

10881092
// delete "nylo-model.json"
1089-
await MetroService.runProcess("rm nylo-model.json");
1093+
Process.start("rm", [fileName],
1094+
runInShell: true, mode: ProcessStartMode.normal);
10901095
MetroConsole.writeInBlack("\n");
10911096

10921097
DartCodeGenerator generator = DartCodeGenerator(
@@ -1110,8 +1115,15 @@ _makeModel(List<String> arguments) async {
11101115
String creationPath = (projectFile.creationPath != null
11111116
? "${projectFile.creationPath!}/"
11121117
: "");
1113-
await MetroService.runProcess(
1114-
"dart format lib/app/models/$creationPath${projectFile.name.snakeCase}.dart");
1118+
1119+
Process.start(
1120+
"dart",
1121+
[
1122+
"format",
1123+
"lib/app/models/$creationPath${projectFile.name.snakeCase}.dart"
1124+
],
1125+
runInShell: true,
1126+
mode: ProcessStartMode.normal);
11151127
}
11161128
}
11171129

lib/nylo_framework.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export 'package:date_field/date_field.dart';
2929
export 'package:dio/dio.dart';
3030

3131
/// Nylo version
32-
const String nyloVersion = 'v6.7.3';
32+
const String nyloVersion = 'v6.7.4';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nylo_framework
22
description: Micro-framework for Flutter that's built to simplify app development for Flutter projects.
3-
version: 6.7.3
3+
version: 6.7.4
44
homepage: https://nylo.dev
55
repository: https://github.com/nylo-core/framework/tree/6.x
66
issue_tracker: https://github.com/nylo-core/framework/issues

0 commit comments

Comments
 (0)