MelosWorkspaceConfig.fallback constructor

MelosWorkspaceConfig.fallback({
  1. required String path,
  2. bool usePubspecOverrides = false,
})

Implementation

MelosWorkspaceConfig.fallback({
  required String path,
  bool usePubspecOverrides = false,
}) : this(
        name: 'Melos',
        packages: [
          createGlob('packages/**', currentDirectoryPath: path),
        ],
        path: currentPlatform.isWindows
            ? windows.normalize(path).replaceAll(r'\', r'\\')
            : path,
        commands: usePubspecOverrides
            ? const CommandConfigs(
                bootstrap: BootstrapCommandConfigs(
                  usePubspecOverrides: true,
                ),
              )
            : CommandConfigs.empty,
      );