INNER CODE UNIT · TypeScript
run
zuplo/zudoku · packages/create-zudoku/index.ts:117
async function run(): Promise<void> {
const conf = new Conf({ projectName: "create-zudoku" });
if (opts.resetPreferences) {
const { resetPreferences } = await prompts({
onState: onPromptState,
type: "toggle",
name: "resetPreferences",
message: "Would you like to reset the saved preferences?",
initial: false,
active: "Yes",
inactive: "No",
});
if (resetPreferences) {
conf.clear();
console.log("The preferences have been reset successfully!");
}
process.exit(0);