roninoss / create-expo-stack

CLI tool to initialize a React Native application with Expo. Provides options to include Typescript, file-based routing via Expo Router, configuration based routing via pure React Navigation, styling via Nativewind, Restyle, Unistyles, StyleSheets, or Tamagui, and/or backend as a service such as Firebase and Supabase.
https://rn.new
MIT License
1.59k stars 85 forks source link

User not prompted to delete folder in non-interactive mode #385

Closed danstepanov closed 3 months ago

danstepanov commented 3 months ago

Issue tracker is ONLY used for reporting bugs. New features should be discussed on our discord, in the #create-expo-stack channel.

Expected Behavior

As a user that has an existing project named my-expo-app, when running npx create-expo-stack@latest my-expo-app --nativewindui inside the same directory as my existing my-expo-app project, I should be prompted as to whether

Current Behavior

CLI just goes forward into creating the new project, unclear if it works.

Possible Solution

Trigger the same code snippet that prompts users in interactive mode

Steps to Reproduce

  1. Create a project named my-expo-app using interactive mode
  2. On the same level, create another project using non-interactive mode (ex: npx create-expo-stack@latest my-expo-app --nativewindui)
  3. See that it does not prompt you to delete the existing project.
dannyhw commented 3 months ago

I assume we should still respect the overwrite flag and not prompt in that case?