This code can racetrack, resulting in corber init occasionally throwing no config/framework found. To rectify, we need to ensure the Promise is resolved only when the fs creates have completed.
In the rare case this happens, running corber init a second time resolves the problem.
https://github.com/isleofcode/corber/blob/master/lib/tasks/create-project.js#L25-L52
This code can racetrack, resulting in
corber init
occasionally throwingno config/framework found
. To rectify, we need to ensure the Promise is resolved only when the fs creates have completed.In the rare case this happens, running
corber init
a second time resolves the problem.