MelosWorkspaceConfig.emptyWith constructor

  1. @visibleForTesting
MelosWorkspaceConfig.emptyWith({
  1. String? name,
  2. String? path,
  3. bool? useRootAsPackage,
  4. bool? discoverNestedWorkspaces,
})

Implementation

@visibleForTesting
MelosWorkspaceConfig.emptyWith({
  String? name,
  String? path,
  bool? useRootAsPackage,
  bool? discoverNestedWorkspaces,
}) : this(
       name: name ?? 'Melos',
       packages: [],
       path: path ?? Directory.current.path,
       commands: CommandConfigs.empty,
       pub: const PubClientConfig(),
       useRootAsPackage: useRootAsPackage ?? false,
       discoverNestedWorkspaces: discoverNestedWorkspaces ?? false,
     );