[v2] Default project path to cwd

This commit is contained in:
Lea Anthony
2021-09-03 18:55:44 +10:00
parent 1ee9cf41e2
commit 20f82cbde4

View File

@@ -71,6 +71,11 @@ func Build(options *Options) (string, error) {
}
options.ProjectData = projectData
// Add default path if it doesn't exist
if projectData.Path == "" {
projectData.Path = cwd
}
// Set build directory
options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")