Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add "clean" command #1582

Merged
merged 10 commits into from
Apr 7, 2022
3 changes: 2 additions & 1 deletion packages/cli-clean/src/clean.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {getLoader} from '@react-native-community/cli-tools';
import type {Config as CLIConfig} from '@react-native-community/cli-types';
import chalk from 'chalk';
Copy link
Member

@thymikee thymikee Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to add chalk to package.json. Hope this fixes the CI that started to fail with weird unrelated error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops 😄

import execa from 'execa';
import {existsSync as fileExists, rmdir} from 'fs';
import os from 'os';
Expand Down Expand Up @@ -57,7 +58,7 @@ async function promptForCaches(
name: 'caches',
message: 'Select all caches to clean',
choices: Object.entries(groups).map(([cmd, group]) => ({
title: `${cmd} (${group.description})`,
title: `${cmd} ${chalk.dim(`(${group.description})`)}`,
value: cmd,
selected: DEFAULT_GROUPS.includes(cmd),
})),
Expand Down