diff --git a/cmd/project/project_admin_build.go b/cmd/project/project_admin_build.go index 3bfe1b49..a0e0379e 100644 --- a/cmd/project/project_admin_build.go +++ b/cmd/project/project_admin_build.go @@ -23,8 +23,8 @@ var projectAdminBuildCmd = &cobra.Command{ logging.FromContext(cmd.Context()).Infof("Looking for extensions to build assets in project") - sources := extension.FindAssetSourcesOfProject(cmd.Context(), args[0]) - constraint, err := extension.GetShopwareProjectConstraint(args[0]) + sources := extension.FindAssetSourcesOfProject(cmd.Context(), projectRoot) + constraint, err := extension.GetShopwareProjectConstraint(projectRoot) if err != nil { return err } diff --git a/cmd/project/project_storefront_build.go b/cmd/project/project_storefront_build.go index a30612b3..8c794c4b 100644 --- a/cmd/project/project_storefront_build.go +++ b/cmd/project/project_storefront_build.go @@ -23,8 +23,8 @@ var projectStorefrontBuildCmd = &cobra.Command{ logging.FromContext(cmd.Context()).Infof("Looking for extensions to build assets in project") - sources := extension.FindAssetSourcesOfProject(cmd.Context(), args[0]) - constraint, err := extension.GetShopwareProjectConstraint(args[0]) + sources := extension.FindAssetSourcesOfProject(cmd.Context(), projectRoot) + constraint, err := extension.GetShopwareProjectConstraint(projectRoot) if err != nil { return err }