nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.37k stars 107 forks source link

Bug: Edge Case - Next project not created and init command working. #187

Open DhairyaMajmudar opened 2 months ago

DhairyaMajmudar commented 2 months ago

Describe the bug command kirimase init is still running even if a folder has basic package.json file and app folder within it.

To Reproduce Steps to reproduce the behavior:

  1. Create an empty folder
  2. initialise package.json file using command npm init
  3. create app folder within
  4. Now run the coammnd kirimase init

Expected behavior command should exit execution while throwing the msg. " No Next.js project detected. Please create a Next.js project and then run kirimase init within that directory. "

Screenshots image

Desktop (please complete the following information):

Additional context This can be prevented by adding more checks in the line 13 of file src/commands/init/index.ts