From 1020ded7f70cb35a3ba84946a73958dd8b1b2583 Mon Sep 17 00:00:00 2001 From: "(AJ) Zin Kyaw" Date: Fri, 29 Dec 2023 23:15:40 +0630 Subject: [PATCH] release `dox-cli` v2.0.1 (#103) --- packages/dox-cli/CHANGELOG.md | 4 ++++ packages/dox-cli/bin/dox.dart | 2 +- packages/dox-cli/lib/src/tools/create_project.dart | 8 +++++--- packages/dox-cli/pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/dox-cli/CHANGELOG.md b/packages/dox-cli/CHANGELOG.md index c9df078..f435f21 100644 --- a/packages/dox-cli/CHANGELOG.md +++ b/packages/dox-cli/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.1 + +- bug fix on dox create command + ## 2.0.0 - Release stable version v2.0 diff --git a/packages/dox-cli/bin/dox.dart b/packages/dox-cli/bin/dox.dart index 12b34dc..deef42d 100644 --- a/packages/dox-cli/bin/dox.dart +++ b/packages/dox-cli/bin/dox.dart @@ -21,7 +21,7 @@ void main(List args) async { ]; if (args.length == 1 && versionKeys.contains(args[0])) { - print('Dox version: 2.0.0-alpha.2'); + print('Dox version: 2.0.1'); return; } diff --git a/packages/dox-cli/lib/src/tools/create_project.dart b/packages/dox-cli/lib/src/tools/create_project.dart index 60f149d..44f7396 100644 --- a/packages/dox-cli/lib/src/tools/create_project.dart +++ b/packages/dox-cli/lib/src/tools/create_project.dart @@ -62,9 +62,11 @@ createProject(projectName, [String? versionName]) async { final files = projectFolder.listSync(recursive: true); for (final file in files) { if (file is File) { - final content = - file.readAsStringSync().replaceAll('dox_sample', projectName); - file.writeAsStringSync(content); + if (!file.path.contains('bin/dox')) { + final content = + file.readAsStringSync().replaceAll('dox_sample', projectName); + file.writeAsStringSync(content); + } } } diff --git a/packages/dox-cli/pubspec.yaml b/packages/dox-cli/pubspec.yaml index 3aaae5d..a1ca9e8 100644 --- a/packages/dox-cli/pubspec.yaml +++ b/packages/dox-cli/pubspec.yaml @@ -1,6 +1,6 @@ name: dox description: This is a cli tool to generate migration, model and to handle database migration with dox framework. It support up and down methods to control migration version. -version: 2.0.0 +version: 2.0.1 repository: https://github.com/dartondox/dox homepage: https://dartondox.dev