fix: Project options getting overwritten

This commit is contained in:
Lea Anthony
2020-06-06 14:40:33 +10:00
parent ecaaafa9d9
commit b091baa16f

View File

@@ -35,8 +35,6 @@ func init() {
// Project options
projectOptions := &cmd.ProjectOptions{}
projectOptions.Verbose = verbose
projectOptions.Platform = runtime.GOOS
// Check we are in project directory
// Check project.json loads correctly
@@ -46,6 +44,10 @@ func init() {
return err
}
// Set project options
projectOptions.Verbose = verbose
projectOptions.Platform = runtime.GOOS
// Save project directory
projectDir := fs.Cwd()