When creating a new project from within the target folder with a target of "." or "./" don't set target to process.cwd() because that doesn't work. #98
Labels
bug
Something isn't working
cli related
Issue is cli related
terminal output related
Issue is terminal output related
Milestone
Problem:
The code to generate a new project interprets target prior to using it in file I/O calls as follows:
target = target === "." && process.cwd() || target;
which causes the project to be generated in the wrong target folder if the user enters "." as the target.
Not sure about other operating systems, but on Mac Os the system will interpret this as
current directory/full path to current directory
when making IO calls to create directories.Solution:
Leave target set to whatever the user had entered and use path.resolve(target) for console.log output when reporting to the console.
The text was updated successfully, but these errors were encountered: