MelosWorkspaceConfig.emptyWith constructor
MelosWorkspaceConfig.emptyWith(
{ - String? name,
- String? path,
- bool? useRootAsPackage,
- 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,
);