Skip to content

Commit

Permalink
ignore fvm dir when looking for main-entry points (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
codekeyz authored Nov 6, 2024
1 parent 88e976e commit 9e34ceb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions packages/globe_cli/lib/src/utils/prompts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,7 @@ Future<List<String>> findMainEntryPoint(Directory rootDir) async {
final segments = p.split(relativePath);

return p.extension(entity.path) == '.dart' &&
!segments.contains('.dart_tool') &&
!segments.contains('test') &&
!<String>['.dart_tool', '.fvm', 'test'].any(segments.contains) &&
!p.basename(entity.path).startsWith('test_');
});
final entryPoints = <String>[];
Expand Down
14 changes: 7 additions & 7 deletions packages/globe_cli/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9e34ceb

Please sign in to comment.