From 9e34ceb4f08aafe54608bf88b5e9ad3a2a77ab2d Mon Sep 17 00:00:00 2001 From: Chima Precious Date: Wed, 6 Nov 2024 13:13:06 +0300 Subject: [PATCH] ignore fvm dir when looking for main-entry points (#113) --- packages/globe_cli/lib/src/utils/prompts.dart | 3 +-- packages/globe_cli/pubspec.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/globe_cli/lib/src/utils/prompts.dart b/packages/globe_cli/lib/src/utils/prompts.dart index c092249..9221880 100644 --- a/packages/globe_cli/lib/src/utils/prompts.dart +++ b/packages/globe_cli/lib/src/utils/prompts.dart @@ -396,8 +396,7 @@ Future> findMainEntryPoint(Directory rootDir) async { final segments = p.split(relativePath); return p.extension(entity.path) == '.dart' && - !segments.contains('.dart_tool') && - !segments.contains('test') && + !['.dart_tool', '.fvm', 'test'].any(segments.contains) && !p.basename(entity.path).startsWith('test_'); }); final entryPoints = []; diff --git a/packages/globe_cli/pubspec.lock b/packages/globe_cli/pubspec.lock index e660c68..35ffaef 100644 --- a/packages/globe_cli/pubspec.lock +++ b/packages/globe_cli/pubspec.lock @@ -5,23 +5,23 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: "5aaf60d96c4cd00fe7f21594b5ad6a1b699c80a27420f8a837f4d68473ef09e3" + sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77" url: "https://pub.dev" source: hosted - version: "68.0.0" + version: "73.0.0" _macros: dependency: transitive description: dart source: sdk - version: "0.1.0" + version: "0.3.2" analyzer: dependency: "direct dev" description: name: analyzer - sha256: "21f1d3720fd1c70316399d5e2bccaebb415c434592d778cce8acb967b8578808" + sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a" url: "https://pub.dev" source: hosted - version: "6.5.0" + version: "6.8.0" archive: dependency: "direct main" description: @@ -337,10 +337,10 @@ packages: dependency: transitive description: name: macros - sha256: "12e8a9842b5a7390de7a781ec63d793527582398d16ea26c60fed58833c9ae79" + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" url: "https://pub.dev" source: hosted - version: "0.1.0-main.0" + version: "0.1.2-main.4" mason_logger: dependency: "direct main" description: